Page 5 of 9
Re: Python plugin: Battery Level for Z-Wave Devices
Posted: Tuesday 22 August 2017 19:13
by Phantom
Hey, thanks for the update but it is not shown in git:
https://github.com/999LV/BatteryLevel/ there i still see version 0.4.3
Re: Python plugin: Battery Level for Z-Wave Devices
Posted: Tuesday 22 August 2017 19:20
by Logread
Good pick... forgot to sync my local development folder... should be ok now
Re: Python plugin: Battery Level for Z-Wave Devices
Posted: Tuesday 22 August 2017 19:33
by Phantom
Logread wrote: ↑Tuesday 22 August 2017 19:20
Good pick... forgot to sync my local development folder... should be ok now
Yes thanks up to date again
Re: Python plugin: Battery Level for Z-Wave Devices
Posted: Tuesday 03 October 2017 11:27
by PBdA
Domoticz 3.8153 + Battery level plugin 4.4 on Rasbian Jessie
I have a strange problem with the plugin. My polling interval is 60 mn. I monitor updates in an LUA script. Each hour battery level of my 6 devices are updated but there are several updates. In log file I see:
Code: Select all
2017-10-03 11:12:28.503 LUA: --> Piles - Remote Fibaro:55
2017-10-03 11:12:28.549 LUA: --> Piles - Remote Fibaro:55
2017-10-03 11:12:28.594 LUA: --> Piles - Remote Fibaro:55
2017-10-03 11:12:28.640 LUA: --> Piles - Remote Fibaro:55
2017-10-03 11:12:28.685 LUA: --> Piles - Remote Fibaro:55
2017-10-03 11:12:28.731 LUA: --> Piles - Remote Fibaro:55
It appears that each hour there is one more line:
Code: Select all
# grep '06:12.*Remote Fibaro:' domoticz.log | wc -l
156
# grep '07:12.*Remote Fibaro:' domoticz.log | wc -l
157
# grep '08:12.*Remote Fibaro:' domoticz.log | wc -l
158
# grep '09:12.*Remote Fibaro:' domoticz.log | wc -l
159
# grep '10:12.*Remote Fibaro:' domoticz.log | wc -l
160
# grep '11:12.*Remote Fibaro:' domoticz.log | wc -l
161
My uptime is 6 days + 16 hours -> 160 updates
The plugin is working well otherwise.
Any idea ?
Re: Python plugin: Battery Level for Z-Wave Devices
Posted: Tuesday 03 October 2017 14:16
by PBdA
Looking at the code, I think that self.BatteryNodes should be reset at in pollnodes(self).
Code: Select all
# diff plugin.py.sv plugin.py
133a134
> self.BatteryNodes = []
That works for me but I don't know about side effects.
Re: Python plugin: Battery Level for Z-Wave Devices
Posted: Wednesday 04 October 2017 11:07
by Logread
@PBdA,
You are correct. Thanks for uncovering the bug. Currently testing the simple fix you suggested. I'll commit to GitHub later today hopefully.
EDIT: Version 0.4.5 is available from GitHub.
Existing users please upgrade (besides issues with the events system, memory usage was building up over time due to the bug uncovered by @PBdA). First post in the thread has been updated accordingly as well.
Re: Python plugin: Battery Level for Z-Wave Devices
Posted: Wednesday 04 October 2017 20:51
by remb0
thanks! great work!
maybe an idea to make a compatible list?
I have:
Neo CoolCam Power plug 12A+
Aeotec ZW089 Recessed Door Sensor Gen5+
Aeotec ZW089 Recessed Door Sensor Gen5+
Neo CoolCam Battery Powered PIR Sensor+
Neo CoolCam Water Leakage Detector+
Schlage Link Mini Keypad RFID
Philio Technology Corporation PST02-A 4 in 1 Multi-Sensor+
Danfoss Z Thermostat 014G0013
- battery.png (30.38 KiB) Viewed 3822 times
as you can see in my screenshot ony the danfoss is working:) the battery was really empty.
the zipato keypad mini in domoticz known as (Schlage Link Mini Keypad RFID) is 64. but this is already a few months so I don't believe it's right.
and in openzwave panel there is no info about the battery stats of the zipato.
are the other devices not compatible with battery info or do I have them wrong configured?
Re: Python plugin: Battery Level for Z-Wave Devices
Posted: Wednesday 04 October 2017 23:30
by Logread
@remb0,
Thanks for your insight and feedback. The plugin gets its data from openzwave, no more no less. And I noticed as well some zwave devices have an erratic battery level reporting behaviour. But nothing I can do about it in the scope of the plugin.
For non zwave devices, this is definitively out of scope but may be someone can contribute ?
Re: Python plugin: Battery Level for Z-Wave Devices
Posted: Thursday 23 November 2017 19:31
by Brutus
Thnx for this great plugin!
Re: Python plugin: Battery Level for Z-Wave Devices
Posted: Monday 01 January 2018 19:32
by dextm80
Great plugin!
Re: Python plugin: Battery Level for Z-Wave Devices
Posted: Friday 12 January 2018 12:07
by anton
Hi,
I did everything what is write in the manual.
I don’t see the the plug-in by the hardware.
Gr.
Anton
Re: Python plugin: Battery Level for Z-Wave Devices
Posted: Friday 12 January 2018 13:56
by Logread
anton wrote: ↑Friday 12 January 2018 12:07
Hi,
I did everything what is write in the manual.
I don’t see the the plug-in by the hardware.
Gr.
Anton
Domoticz version ? Platform ?
Re: Python plugin: Battery Level for Z-Wave Devices
Posted: Friday 12 January 2018 14:16
by Siewert308SW
Just came by to say thx...
- Naamloos.png (55.67 KiB) Viewed 3216 times
Re: Python plugin: Battery Level for Z-Wave Devices
Posted: Friday 12 January 2018 21:44
by Logread
Siewert308SW wrote: ↑Friday 12 January 2018 14:16
Just came by to say thx...
Naamloos.png
Appreciate
Re: Python plugin: Battery Level for Z-Wave Devices
Posted: Saturday 13 January 2018 16:13
by anton
Logread wrote: ↑Friday 12 January 2018 13:56
anton wrote: ↑Friday 12 January 2018 12:07
Hi,
I did everything what is write in the manual.
I don’t see the the plug-in by the hardware.
Gr.
Anton
Domoticz version ? Platform ?
Raspberry Pi 2
Domoticz 3,885
Re: Python plugin: Battery Level for Z-Wave Devices
Posted: Thursday 01 February 2018 6:37
by shturm
anton wrote: ↑Friday 12 January 2018 12:07
Hi,
I did everything what is write in the manual.
I don’t see the the plug-in by the hardware.
Gr.
Anton
I'm having the same problem.
Ubuntu 14.04
Domoticz 3.8153
It's installed in ~/git/domoticz
Any idea why I don't see plugin in the list?
Re: Python plugin: Battery Level for Z-Wave Devices
Posted: Thursday 01 February 2018 7:35
by Logread
@shturm,
Did you try other plugins ? I suspect this is a domoticz plugin framework issue rather than an issue with this particular plugin.
Re: Python plugin: Battery Level for Z-Wave Devices
Posted: Saturday 03 February 2018 4:38
by shturm
Re: Python plugin: Battery Level for Z-Wave Devices
Posted: Saturday 17 February 2018 20:57
by Derik
Dear Developer.....
cannot install from the github..
Is there something changed from the wiki?
Everytime i get this error:
Code: Select all
root@odroid:/home/root/domoticz/plugins/BatteryLevel# git clone https://github.com/999LV/BatteryLevel.git BatteryLevel
fatal: could not create work tree dir 'BatteryLevel': No such file or directory
root@odroid:/home/root/domoticz/plugins/BatteryLevel#
And i am sure the map BatteryLevel is in the plugin section..
Re: Python plugin: Battery Level for Z-Wave Devices
Posted: Sunday 18 February 2018 11:48
by Phantom
Derik wrote: ↑Saturday 17 February 2018 20:57
Dear Developer.....
cannot install from the github..
Is there something changed from the wiki?
Everytime i get this error:
Code: Select all
root@odroid:/home/root/domoticz/plugins/BatteryLevel# git clone https://github.com/999LV/BatteryLevel.git BatteryLevel
fatal: could not create work tree dir 'BatteryLevel': No such file or directory
root@odroid:/home/root/domoticz/plugins/BatteryLevel#
And i am sure the map BatteryLevel is in the plugin section..
I think you need to go back 1 folder as you are already in the BatteryLevel map and trying to create the BatteryLevel in there again.