Merge pull request #54 from blakadder/patch-1

add missing json attributes
This commit is contained in:
fvanroie 2021-01-31 01:19:22 +01:00 committed by GitHub
commit 9df70a8b1b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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"]
}
}
*/
*/