battery low device not available in LUA
Posted: Thursday 29 December 2022 10:12
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?
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?