add v3.4 entity id flag to MQTT settings

This commit is contained in:
Proddy
2022-12-14 22:07:42 +01:00
parent 6eeb8de02c
commit ccbb56d403
18 changed files with 154 additions and 111 deletions

View File

@@ -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_;