Hi! I’m using zigbee2mqtt with Aqara PIRs and door sensors. All is working fine, but I noticed it’s missing battery level and voltage on some of them E.g:
door sensor, MQTT topic for autodiscovery:
{
“payload_on” : true,
“payload_off” : false,
“value_template” : “{{ value_json.occupancy }}”,
“device_class” : “motion”,
“json_attributes” : [ “battery”, “voltage” ],
“state_topic” : “zigbee2mqtt/0x00158d00023f3532”,
“availability_topic” : “zigbee2mqtt/bridge/state”,
“name” : “0x00158d00023f3532”,
“unique_id” : “0x00158d00023f3532_occupancy_zigbee2mqtt”
}
but the “card” on frontend is totally missing the json_attributes, even if the payload arrives:
2018-11-02 01:31:16 DEBUG (MainThread) [homeassistant.components.mqtt] Received message on zigbee2mqtt/0x00158d00023f3532: b’{“occupancy”:false,“linkquality”:115,“battery”:“99.00”,“voltage”:3025}’
Same for “old” mija PIRs, and for the occupancy sensor of new Aqara ones (single unit with illuminance and occupancy sensors, but oviously only one battery to report both).
What am I missing?