Python plugin: Battery Level for Z-Wave Devices

Python and python framework

Moderator: leecollings

Logread
Posts: 228
Joined: Sunday 28 August 2016 7:48
Target OS: Raspberry Pi / ODroid
Domoticz version:
Location: France
Contact:

Re: Python plugin: Battery Level for Z-Wave Devices

Post by Logread »

Version 0.6.1 of the plugin is now available for download.

This update is mandatory if you are using any version of domoticz from 2020.1 onward
(updated the domoticz version check of the plugin to the new version numbering scheme implemented in domoticz on March 22, 2020).
User avatar
Phantom
Posts: 87
Joined: Saturday 31 December 2016 14:47
Target OS: Raspberry Pi / ODroid
Domoticz version: 4.11652
Location: The Netherlands
Contact:

Re: Python plugin: Battery Level for Z-Wave Devices

Post by Phantom »

Thanks for the update
fr3sh
Posts: 37
Joined: Saturday 16 April 2016 1:02
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Python plugin: Battery Level for Z-Wave Devices

Post by fr3sh »

I think there is a bug. You asume that tipical api uri is

Code: Select all

 
http://{IP}:{PORT}/json.htm?....
 
in the code there is

Code: Select all

 
    url = "http://{}:{}/json.htm?{}".format(Parameters["Address"], Parameters["Port"], parse.quote(APICall, safe="&="))
 
and in my case i have:

Code: Select all

 
 http://{IP}:{PORT}/{CALATOG}/json.htm?....
 
I tried to add
8080/{CAtalog} - on the port configuration in domoticz but port is only holding for a number ;)

Please fix it ;)
TheCondor
Posts: 78
Joined: Thursday 18 June 2015 10:32
Target OS: Linux
Domoticz version:
Contact:

Re: Python plugin: Battery Level for Z-Wave Devices

Post by TheCondor »

Logread wrote: Tuesday 24 March 2020 9:18 Version 0.6.1 of the plugin is now available for download.

This update is mandatory if you are using any version of domoticz from 2020.1 onward
(updated the domoticz version check of the plugin to the new version numbering scheme implemented in domoticz on March 22, 2020).
git pull and start working again. Thanks!
multinet
Posts: 97
Joined: Friday 05 December 2014 22:52
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Python plugin: Battery Level for Z-Wave Devices

Post by multinet »

Hello

I just move to last domoticz and last plugin battery level

My zwave device are well configurated and running well.

My question is to now if battery plugin update the level (and as well the date of update on device) even if the % does not change.

Indeed my level devices have not been updated since 3 days even if each zwave are update temp for exemple every 10 min

Thank you
PI 2 - Domoticz 2021.1
RFXCOM - RFXtrx433 USB 433.92MHz Transceiver (5 DIO 54755 + 2 DIO 54756 + 3 DIO 54798)
Z-Wave.Me ZME_UZB1 USB Stick (6 FGSD002 + 2 FGRM222 + 1 FGS223 + 1 FGMS001-ZW5 + 1 FGRGBWM441 + 1 FGBS001 + 2 FGFS101)
6 sondes DS18B20
Atis
Posts: 37
Joined: Monday 30 March 2020 7:30
Target OS: NAS (Synology & others)
Domoticz version:
Contact:

Re: Python plugin: Battery Level for Z-Wave Devices

Post by Atis »

Hello,
I try this plugin with 2020.2.12213-8 version. After install completing crashing domoticz.
newpond
Posts: 26
Joined: Sunday 26 September 2021 2:34
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Python plugin: Battery Level for Z-Wave Devices

Post by newpond »

can we use a https api call instead of using port 8080?
I still seem to be getting the following error however even using port 8080
Error: Z-Wave Batteries: Error calling 'http://192.168.1.9:8080/json.htm?type=c ... vels&idx=2

2023.1 build 15344 python ver 3.73
Logread
Posts: 228
Joined: Sunday 28 August 2016 7:48
Target OS: Raspberry Pi / ODroid
Domoticz version:
Location: France
Contact:

Re: Python plugin: Battery Level for Z-Wave Devices

Post by Logread »

Not sure what you mean, but anyway the currently publicly available plugin is deprecated together with openzwave. I adapted the plungin to work with MQTT and zwave- js-ui, but I still need to push that to GitHub. May be next week when I am on vacations
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest