mirror of
https://github.com/HASwitchPlate/openHASP.git
synced 2025-07-24 11:46:34 +00:00
Merge pull request #54 from blakadder/patch-1
add missing json attributes
This commit is contained in:
commit
9df70a8b1b
@ -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