devices, json-ha-config

This commit is contained in:
MichaelDvP
2020-11-18 10:17:57 +01:00
parent d41cb6eda2
commit cf3728759e
3 changed files with 3 additions and 3 deletions

View File

@@ -97,7 +97,7 @@ void Heatpump::register_mqtt_ha_config() {
} }
// Create the Master device // Create the Master device
StaticJsonDocument<EMSESP_MAX_JSON_SIZE_SMALL> doc; StaticJsonDocument<EMSESP_MAX_JSON_SIZE_HA_CONFIG> doc;
doc["name"] = F_(EMSESP); doc["name"] = F_(EMSESP);
doc["uniq_id"] = F_(heatpump); doc["uniq_id"] = F_(heatpump);
doc["ic"] = F_(iconheatpump); doc["ic"] = F_(iconheatpump);

View File

@@ -166,7 +166,7 @@ void Mixer::register_mqtt_ha_config() {
} }
// Create the Master device // Create the Master device
StaticJsonDocument<EMSESP_MAX_JSON_SIZE_MEDIUM> doc; StaticJsonDocument<EMSESP_MAX_JSON_SIZE_HA_CONFIG> doc;
char name[20]; char name[20];
snprintf_P(name, sizeof(name), PSTR("Mixer %02X"), device_id() - 0x20 + 1); snprintf_P(name, sizeof(name), PSTR("Mixer %02X"), device_id() - 0x20 + 1);

View File

@@ -159,7 +159,7 @@ void Solar::register_mqtt_ha_config() {
} }
// Create the Master device // Create the Master device
StaticJsonDocument<EMSESP_MAX_JSON_SIZE_SMALL> doc; StaticJsonDocument<EMSESP_MAX_JSON_SIZE_HA_CONFIG> doc;
doc["name"] = F_(EMSESP); doc["name"] = F_(EMSESP);
doc["uniq_id"] = F_(solar); doc["uniq_id"] = F_(solar);
doc["ic"] = F_(iconthermostat); doc["ic"] = F_(iconthermostat);