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
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))
Who is online
Users browsing this forum: No registered users and 1 guest