mirror of
https://github.com/emsesp/EMS-ESP32.git
synced 2025-12-07 08:19:52 +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
|
||||
|
||||
@@ -38,7 +38,7 @@
|
||||
|
||||
using uuid::console::Shell;
|
||||
|
||||
#define EMSESP_MAX_JSON_SIZE_HA_CONFIG 256 // for small HA config payloads
|
||||
#define EMSESP_MAX_JSON_SIZE_HA_CONFIG 384 // for small HA config payloads
|
||||
#define EMSESP_MAX_JSON_SIZE_SMALL 384 // for smaller json docs when using StaticJsonDocument
|
||||
#define EMSESP_MAX_JSON_SIZE_MEDIUM 768 // for medium json docs from ems devices, when using StaticJsonDocument
|
||||
#define EMSESP_MAX_JSON_SIZE_LARGE 1024 // for large json docs from ems devices, like boiler or thermostat data. Using StaticJsonDocument
|
||||
|
||||
Reference in New Issue
Block a user