How to update RSSI and BatteryLevel from python plugin

On various Hardware and OS systems: pi / windows / routers / nas, etc

Moderator: leecollings

Post Reply
pipiche
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

Post 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
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
pipiche
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

Post 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))
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
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest