mirror of
https://github.com/Laxilef/OTGateway.git
synced 2025-12-12 03:04:27 +05:00
fix entity climate.heating
This commit is contained in:
@@ -1565,7 +1565,7 @@ public:
|
|||||||
|
|
||||||
|
|
||||||
bool publishClimateHeating(byte minTemp = 20, byte maxTemp = 90, bool enabledByDefault = true) {
|
bool publishClimateHeating(byte minTemp = 20, byte maxTemp = 90, bool enabledByDefault = true) {
|
||||||
StaticJsonDocument<2048> doc;
|
StaticJsonDocument<2560> doc;
|
||||||
doc[F("availability")][F("topic")] = _prefix + F("/status");
|
doc[F("availability")][F("topic")] = _prefix + F("/status");
|
||||||
doc[F("device")][F("identifiers")][0] = _prefix;
|
doc[F("device")][F("identifiers")][0] = _prefix;
|
||||||
doc[F("device")][F("sw_version")] = _deviceVersion;
|
doc[F("device")][F("sw_version")] = _deviceVersion;
|
||||||
@@ -1619,7 +1619,7 @@ public:
|
|||||||
}
|
}
|
||||||
|
|
||||||
bool publishClimateDHW(byte minTemp = 40, byte maxTemp = 60, bool enabledByDefault = true) {
|
bool publishClimateDHW(byte minTemp = 40, byte maxTemp = 60, bool enabledByDefault = true) {
|
||||||
StaticJsonDocument<1536> doc;
|
StaticJsonDocument<2560> doc;
|
||||||
doc[F("availability")][F("topic")] = _prefix + F("/status");
|
doc[F("availability")][F("topic")] = _prefix + F("/status");
|
||||||
doc[F("device")][F("identifiers")][0] = _prefix;
|
doc[F("device")][F("identifiers")][0] = _prefix;
|
||||||
doc[F("device")][F("sw_version")] = _deviceVersion;
|
doc[F("device")][F("sw_version")] = _deviceVersion;
|
||||||
|
|||||||
Reference in New Issue
Block a user