Page 1 of 1

battery low device not available in LUA

Posted: Thursday 29 December 2022 10:12
by manjh
I have one Zigbee PIR sensor, several more on order.
The "occupancy" switch works OK now. I have a LUA script to react to this.

But I am trying to set up a LUA script to keep track of the battery level.
So I enabled the "battery low" device, it comes into Domoticz as a simple switch.

When I try to read the status of this switch in LUA, it is not available.
Also, when I click the device list button (top left, in the LUA editor), the device is not there in the list. The "occupancy" device is there.

WHen I try to get the device status via a json command in my browser, status info comes back OK.

Am I missing something?

Re: battery low device not available in LUA

Posted: Wednesday 04 January 2023 20:53
by waltervl
How is zigbee connected to Domoticz? Zigbee2mqtt? With plugin or MQTT Autodiscover?

Re: battery low device not available in LUA

Posted: Thursday 05 January 2023 20:32
by manjh
Problem is no longer a problem for me. I moved to "Zigbee for Domoticz", and discovered that it ha a special display on the dashboard to inform about battery levels of the Zigbee devices. That is sufficient for me.

Re: battery low device not available in LUA

Posted: Thursday 05 January 2023 20:36
by waltervl
And the plugin also sends that data to Domoticz where you can see the battery status in the device overview (menu setup - devices). Also the device widget will go yellow if the battery is low.

Re: battery low device not available in LUA

Posted: Saturday 07 January 2023 9:20
by manjh
excellent!