Page 1 of 1

How to update RSSI and BatteryLevel from python plugin

Posted: Friday 17 August 2018 9:35
by pipiche
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

Re: How to update RSSI and BatteryLevel from python plugin

Posted: Friday 17 August 2018 9:58
by pipiche
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))