mirror of
https://github.com/emsesp/EMS-ESP32.git
synced 2025-12-07 08:19:52 +03:00
add v3.4 entity id flag to MQTT settings
This commit is contained in:
@@ -95,6 +95,7 @@ class Mqtt {
|
||||
static void publish_ha_sensor_config(uint8_t type,
|
||||
uint8_t tag,
|
||||
const char * const fullname,
|
||||
const char * const en_name,
|
||||
const uint8_t device_type,
|
||||
const char * const entity,
|
||||
const uint8_t uom,
|
||||
@@ -184,6 +185,10 @@ class Mqtt {
|
||||
return multiple_instances_;
|
||||
}
|
||||
|
||||
static bool entity_fullname() {
|
||||
return entity_fullname_;
|
||||
}
|
||||
|
||||
static void nested_format(uint8_t nested_format) {
|
||||
nested_format_ = nested_format;
|
||||
}
|
||||
@@ -322,6 +327,7 @@ class Mqtt {
|
||||
static bool ha_enabled_;
|
||||
static uint8_t nested_format_;
|
||||
static bool multiple_instances_;
|
||||
static bool entity_fullname_;
|
||||
static std::string discovery_prefix_;
|
||||
static bool publish_single_;
|
||||
static bool publish_single2cmd_;
|
||||
|
||||
Reference in New Issue
Block a user