mirror of
https://github.com/emsesp/EMS-ESP32.git
synced 2025-12-07 00:09:51 +03:00
json size of ha-sensors
This commit is contained in:
@@ -719,7 +719,7 @@ void Mqtt::register_mqtt_ha_binary_sensor(const __FlashStringHelper * name, cons
|
||||
snprintf_P(topic, sizeof(topic), PSTR("homeassistant/binary_sensor/ems-esp/%s/config"), entity);
|
||||
|
||||
// queue MQTT publish
|
||||
publish(topic, doc.as<JsonObject>());
|
||||
publish_retain(topic, doc.as<JsonObject>(), true);
|
||||
}
|
||||
|
||||
// HA config for a normal 'sensor' type
|
||||
|
||||
Reference in New Issue
Block a user