mirror of
https://github.com/emsesp/EMS-ESP32.git
synced 2026-01-30 10:39:12 +03:00
add HA device_class
This commit is contained in:
@@ -96,6 +96,10 @@ class Mqtt {
|
||||
|
||||
};
|
||||
|
||||
// for Home Assistant
|
||||
enum class State_class { NONE, MEASUREMENT, TOTAL_INCREASING };
|
||||
enum class Device_class { NONE, TEMPERATURE, POWER_FACTOR, ENERGY, PRESSURE, POWER, SIGNAL_STRENGTH };
|
||||
|
||||
static constexpr uint8_t MQTT_TOPIC_MAX_SIZE = 128; // note this should really match the user setting in mqttSettings.maxTopicLength
|
||||
|
||||
static void on_connect();
|
||||
|
||||
Reference in New Issue
Block a user