batterylevel contacts Topic is solved
Moderators: leecollings, htilburgs, robgeerts
-
- Posts: 75
- Joined: Friday 08 January 2016 10:02
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Location: Nederland
- Contact:
batterylevel contacts
Is there a way to show the battery level of door/window contacts on the Dashboard?
-
- Posts: 2291
- Joined: Monday 29 August 2016 22:40
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
Re: batterylevel contacts
Not yet.
How would you like to have it presented?
I could show an icon at the upper right of a block, when the battery level is below a certain threshold.
Currently this are the existing font-awesome icons. Would that be sufficient?
(on the dashboard they will be rotated counter clockwise)
How would you like to have it presented?
I could show an icon at the upper right of a block, when the battery level is below a certain threshold.
Currently this are the existing font-awesome icons. Would that be sufficient?
(on the dashboard they will be rotated counter clockwise)
-
- Posts: 75
- Joined: Friday 08 January 2016 10:02
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Location: Nederland
- Contact:
Re: batterylevel contacts
That would be great. Are you using all the 5 icons, so that each level has his own icon or only the empty one when the level is below a certain value? Thanks in advance.
-
- Posts: 2291
- Joined: Monday 29 August 2016 22:40
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
Re: batterylevel contacts
I planned to use them all:
>90%: full
>60%: three quarters
>35%: half
>10: quarter
<=10: empty
but only show them if battery level is below the user defined threshold
>90%: full
>60%: three quarters
>35%: half
>10: quarter
<=10: empty
but only show them if battery level is below the user defined threshold
-
- Posts: 75
- Joined: Friday 08 January 2016 10:02
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Location: Nederland
- Contact:
Re: batterylevel contacts
OK. That's nice.
-
- Posts: 2291
- Joined: Monday 29 August 2016 22:40
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
Re: batterylevel contacts
ok, implemented first version in latest beta.
Could you test?
Add the following to CONFIG.js to show the battery level for all battery powered devices:
The batteryThreshold parameter can also be set on block level.
See:
https://dashticz.readthedocs.io/en/beta ... tery-level
Could you test?
Add the following to CONFIG.js to show the battery level for all battery powered devices:
Code: Select all
config['batteryThreshold'] = 100;
See:
https://dashticz.readthedocs.io/en/beta ... tery-level
- madpatrick
- Posts: 667
- Joined: Monday 26 December 2016 12:17
- Target OS: Linux
- Domoticz version: 2025.1
- Location: Netherlands
- Contact:
Re: batterylevel contacts
Hi Lokonli,
It is working !
Nice add-on
It is working !
Nice add-on
-= HP server GEN11 =- OZW -=- Toon2 (rooted) -=- Domoticz v2025.1 -=- Dashticz v3.14b on Tab8" =-
-
- Posts: 16
- Joined: Wednesday 30 December 2020 13:48
- Target OS: Raspberry Pi / ODroid
- Domoticz version: 2024.1
- Location: Belgium
- Contact:
Re: batterylevel contacts
Hello,
I try to implement it also (i swithed to the beta branch). I think there's a difference because I use zwave module with 2 or more informations and domoticz didn't manage the battery as he does with a simple battery object (433 for example).
I'm using this plugin in domoticz to have a battery object.
https://www.domoticz.com/wiki/Plugins/BatteryLevel.html
Do you think it's possible to link the battery state you implement to another idx ?
Thank you.
I try to implement it also (i swithed to the beta branch). I think there's a difference because I use zwave module with 2 or more informations and domoticz didn't manage the battery as he does with a simple battery object (433 for example).
I'm using this plugin in domoticz to have a battery object.
https://www.domoticz.com/wiki/Plugins/BatteryLevel.html
Do you think it's possible to link the battery state you implement to another idx ?
Thank you.
-
- Posts: 2291
- Joined: Monday 29 August 2016 22:40
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
Re: batterylevel contacts
If I read the zwave plugin page, then it seems that the plugin just uses the battery information from the device itself.red73390 wrote: ↑Thursday 31 December 2020 11:24 Hello,
I try to implement it also (i swithed to the beta branch). I think there's a difference because I use zwave module with 2 or more informations and domoticz didn't manage the battery as he does with a simple battery object (433 for example).
I'm using this plugin in domoticz to have a battery object.
https://www.domoticz.com/wiki/Plugins/BatteryLevel.html
Do you think it's possible to link the battery state you implement to another idx ?
Thank you.
If that's true then it doesn't add value to connect to the additional 'battery level' devices created by the plugin.
If you set config['batteryThreshold'] = 256
do you then see battery level info for your zwave devices?
- madpatrick
- Posts: 667
- Joined: Monday 26 December 2016 12:17
- Target OS: Linux
- Domoticz version: 2025.1
- Location: Netherlands
- Contact:
Re: batterylevel contacts
Using gives all the battery info of my zwave devices.

Is it possible to scale the image ?
My block a little bit small
Code: Select all
config['batteryThreshold'] = 100;

Is it possible to scale the image ?
My block a little bit small

-= HP server GEN11 =- OZW -=- Toon2 (rooted) -=- Domoticz v2025.1 -=- Dashticz v3.14b on Tab8" =-
-
- Posts: 2291
- Joined: Monday 29 August 2016 22:40
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
Re: batterylevel contacts
The default battery font size is 15. To reduce it to 10, add the following to custom.css:
To change the font size for the percentage number: (default is 10)
Code: Select all
.battery-level {
font-size: 10px
}
Code: Select all
.battery-percentage {
font-size: 5px;
}
- madpatrick
- Posts: 667
- Joined: Monday 26 December 2016 12:17
- Target OS: Linux
- Domoticz version: 2025.1
- Location: Netherlands
- Contact:
Re: batterylevel contacts
The default size was bigger then 15px
I need to go to "font-size: 20px" and add "!important"
Probably due the small screen size of my tablet
I need to go to "font-size: 20px" and add "!important"
Probably due the small screen size of my tablet
-= HP server GEN11 =- OZW -=- Toon2 (rooted) -=- Domoticz v2025.1 -=- Dashticz v3.14b on Tab8" =-
-
- Posts: 16
- Joined: Wednesday 30 December 2020 13:48
- Target OS: Raspberry Pi / ODroid
- Domoticz version: 2024.1
- Location: Belgium
- Contact:
Re: batterylevel contacts
@madpatrick : Then i have to check again, with config['batteryThreshold'] = 100; or config['batteryThreshold'] = 256; nothing appear
@Lokonli : Yes the plugin battery ask the zwave master, and create a new equipment for each equipment with a battery status. As it works for madpatrick I need to check why it's not working for me.


@Lokonli : Yes the plugin battery ask the zwave master, and create a new equipment for each equipment with a battery status. As it works for madpatrick I need to check why it's not working for me.
- Spoiler: show


-
- Posts: 2291
- Joined: Monday 29 August 2016 22:40
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
Re: batterylevel contacts
Device 11 and 12 seem to have battery level info.
Double check that you run the latest Dashticz beta version. Update with 'git pull' in the Dashticz folder. There should be no errors reported.
Double check that you run the latest Dashticz beta version. Update with 'git pull' in the Dashticz folder. There should be no errors reported.
-
- Posts: 2291
- Joined: Monday 29 August 2016 22:40
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
Re: batterylevel contacts
or you changed the icon font size in custom.css already? (or font size for .fas)madpatrick wrote: ↑Thursday 31 December 2020 13:30 The default size was bigger then 15px
I need to go to "font-size: 20px" and add "!important"
Probably due the small screen size of my tablet
- madpatrick
- Posts: 667
- Joined: Monday 26 December 2016 12:17
- Target OS: Linux
- Domoticz version: 2025.1
- Location: Netherlands
- Contact:
Re: batterylevel contacts
yep.....
.fas was set to 26px

-= HP server GEN11 =- OZW -=- Toon2 (rooted) -=- Domoticz v2025.1 -=- Dashticz v3.14b on Tab8" =-
-
- Posts: 16
- Joined: Wednesday 30 December 2020 13:48
- Target OS: Raspberry Pi / ODroid
- Domoticz version: 2024.1
- Location: Belgium
- Contact:
Re: batterylevel contacts
Yes device 11 and 12 have battery info, in fact it's 1 equipment with many devices.
I tried it again in dashticz folder, git pull -> it say already up to date (french translate)
In the info on dasthicz folder i'm in version 3.7.2 beta you are running latest version
-
- Posts: 2291
- Joined: Monday 29 August 2016 22:40
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
Re: batterylevel contacts
Can you post the output of:
Code: Select all
http://domoticz ip:port/json.htm?type=devices&rid=11
-
- Posts: 16
- Joined: Wednesday 30 December 2020 13:48
- Target OS: Raspberry Pi / ODroid
- Domoticz version: 2024.1
- Location: Belgium
- Contact:
Re: batterylevel contacts
Lokonli wrote: ↑Thursday 31 December 2020 18:36 Can you post the output of:
Code: Select all
http://domoticz ip:port/json.htm?type=devices&rid=11
- Spoiler: show
-
- Posts: 2291
- Joined: Monday 29 August 2016 22:40
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
Re: batterylevel contacts
Just as double check, can you add the following to CONFIG.js:
Do you see any battery level?
Code: Select all
config['batteryThreshold'] = 256;
Who is online
Users browsing this forum: No registered users and 1 guest