mirror of
https://github.com/HASwitchPlate/openHASP.git
synced 2025-07-24 11:46:34 +00:00
add missing json attributes
needs json attributes to pull info
This commit is contained in:
parent
8a54b698a0
commit
588682a3bb
@ -238,6 +238,7 @@ void mqtt_ha_register_activepage()
|
||||
doc[F("cmd_t")] = F("~command/page");
|
||||
doc[F("stat_t")] = F("~state/page");
|
||||
doc[F("avty_t")] = F("~LWT");
|
||||
doc[F("json_attr_t")] = F("~state/statusupdate");
|
||||
|
||||
snprintf_P(buffer, sizeof(buffer), PSTR("%s_hasp_activepage"), halGetMacAddress(0, "").c_str(), mqttNodeName);
|
||||
doc[F("uniq_id")] = buffer;
|
||||
@ -343,4 +344,4 @@ device:
|
||||
"identifiers" : ["plate_87546c"]
|
||||
}
|
||||
}
|
||||
*/
|
||||
*/
|
||||
|
Loading…
x
Reference in New Issue
Block a user