I'm currently working on the implementation of a plugin which is able to retreive from the devices their BatteryLevel as well as RSSI.
My question now, is How can I push that to the corresponding Domoticz Device.
In python we can use the : Devices[Unit].Update()
But what can I use for BatteryLevel and RSSI ?
Thanks in advance
How to update RSSI and BatteryLevel from python plugin
Moderator: leecollings
-
- Posts: 2016
- Joined: Monday 02 April 2018 20:33
- Target OS: Raspberry Pi / ODroid
- Domoticz version: beta
- Location: France
- Contact:
How to update RSSI and BatteryLevel from python plugin
Zigbee for Domoticz plugin / RPI3B+ / Electrolama ZZH-P / 45 devices
If the plugin provides you value, you can support me with a donation Paypal.
Wiki is available here.
Zigbee for Domoticz FAQ
If the plugin provides you value, you can support me with a donation Paypal.
Wiki is available here.
Zigbee for Domoticz FAQ
-
- Posts: 2016
- Joined: Monday 02 April 2018 20:33
- Target OS: Raspberry Pi / ODroid
- Domoticz version: beta
- Location: France
- Contact:
Re: How to update RSSI and BatteryLevel from python plugin
Ok. I found it, but know what I would be glad to understand is what are the expected values
For BatteryLvl: between 0 and ?
For SignalLevel: is that between 0 and 10 ?
Devices[Unit].Update(nValue=int(nValue), sValue=str(sValue), Options=str(Options), SignalLevel=10, BatteryLevel=int(BatteryLvl))
For BatteryLvl: between 0 and ?
For SignalLevel: is that between 0 and 10 ?
Devices[Unit].Update(nValue=int(nValue), sValue=str(sValue), Options=str(Options), SignalLevel=10, BatteryLevel=int(BatteryLvl))
Zigbee for Domoticz plugin / RPI3B+ / Electrolama ZZH-P / 45 devices
If the plugin provides you value, you can support me with a donation Paypal.
Wiki is available here.
Zigbee for Domoticz FAQ
If the plugin provides you value, you can support me with a donation Paypal.
Wiki is available here.
Zigbee for Domoticz FAQ
Who is online
Users browsing this forum: No registered users and 1 guest