Home Assistant discovery - add energy counters today/yesterday, add clear date, add friendly names (#1092)

* HASS discovery energy stats fixed except energycounter_clear_date

* HASS: add friendly entity names, remove timestamp class from energycounter_clear_date as workaround for hass-incompatible date format

* HA energycounter_clear_date fixed for correct interpreting as home assistant timestamp sensor

* fix compile on OpenW800 due to OBK_DISABLE_ALL_DRIVERS on that platform

---------

Co-authored-by: Stefan Smith <stefan064>
This commit is contained in:
stefan064
2024-02-22 21:26:13 +11:00
committed by GitHub
parent 701fa42d18
commit 8eaf72e2ea
5 changed files with 63 additions and 18 deletions

View File

@@ -67,9 +67,12 @@ typedef enum {
ILLUMINANCE_SENSOR,
// dBm unit
HASS_RSSI,
/// @brief Wh, kWh
ENERGY_SENSOR,
// hPa
PRESSURE_SENSOR,
/// @Brief Timestamp Sensor
TIMESTAMP_SENSOR,
} ENTITY_TYPE;