mirror of
https://github.com/emsesp/EMS-ESP32.git
synced 2025-12-07 00:09:51 +03:00
devices, json-ha-config
This commit is contained in:
@@ -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);
|
||||||
|
|||||||
@@ -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);
|
||||||
|
|||||||
@@ -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);
|
||||||
|
|||||||
Reference in New Issue
Block a user