Zigbee2Mqtt baterylevel updates not working
Posted: Friday 10 June 2022 23:58
Today I changed over from the Plugin Z2M version to the AutoDetect version in lan of Z2M. The devices I'm using are KaKU ZSDR-850 and ZCO-900 (heiman hs3sa etc) in combination with a re-flashed Sonoff zigbee 3 dongle plus. All worked okay under the plugin version and you could see in Domoticz that the switches were updated ever hour(which fits the reporting setting of the device). After changing over all was auto detected correctly and testing the alarms worked. However the battery settings/Last-seen were not updated. You could see that a MQTT message was generated every hour :
(2022-06-10 21:39:04MQTT publish: topic 'zigbee2mqtt/ZB_smoke_woonkamer', payload '{"ac_status":false,"battery":100,"battery_low":false,"last_seen":"2022-06-10T21:39:04+02:00","linkquality":51,"restore_reports":true,"smoke":true,"supervision_reports":false,"tamper":false,"test":false,"trouble":false}')
The text device(last seen option of the frontend) was updated correctly, but the device switch(with the Last-seen and batterylevel ) not. Only if you publish a mqtt with a smoke change (true or false),that simulates pushing the test buton of the smoke-sensor) the "Last-seen and batterylevel gets updated in Domoticz device(also in the text last-seen box).
Has anybody a work around for this , since I'm using the battery level for automatic checking of the battery state and text boxes are excluded apparently. Should act similar as in the plugin version. Maybe someone can update the code to act like in the Plugin vesrion?
Thks
Rini
(2022-06-10 21:39:04MQTT publish: topic 'zigbee2mqtt/ZB_smoke_woonkamer', payload '{"ac_status":false,"battery":100,"battery_low":false,"last_seen":"2022-06-10T21:39:04+02:00","linkquality":51,"restore_reports":true,"smoke":true,"supervision_reports":false,"tamper":false,"test":false,"trouble":false}')
The text device(last seen option of the frontend) was updated correctly, but the device switch(with the Last-seen and batterylevel ) not. Only if you publish a mqtt with a smoke change (true or false),that simulates pushing the test buton of the smoke-sensor) the "Last-seen and batterylevel gets updated in Domoticz device(also in the text last-seen box).
Has anybody a work around for this , since I'm using the battery level for automatic checking of the battery state and text boxes are excluded apparently. Should act similar as in the plugin version. Maybe someone can update the code to act like in the Plugin vesrion?
Thks
Rini