HA discovery energy_sensor from tuyaMCU (#864)

Handle EnergyTotal_kWh_div1000
This commit is contained in:
Aleksey Zagorodnikov
2023-06-25 13:28:52 +06:00
committed by GitHub
parent 12cb936ecf
commit 23cbd2c7f1
3 changed files with 27 additions and 0 deletions

View File

@ -63,6 +63,8 @@ typedef enum {
READONLYLOWMIDHIGH_SENSOR,
// lx unit
ILLUMINANCE_SENSOR,
ENERGY_SENSOR,
} ENTITY_TYPE;
//unique_id is defined in hass_populate_unique_id and is based on CFG_GetDeviceName() whose size is CGF_DEVICE_NAME_SIZE.