add missing json attributes

needs json attributes to pull info
This commit is contained in:
blakadder 2021-01-30 17:24:15 +01:00 committed by GitHub
parent 8a54b698a0
commit 588682a3bb
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"]
}
}
*/
*/