Battery level indicator

Use this forum to discuss possible implementation of a new feature before opening a ticket.
A developer shall edit the topic title with "[xxx]" where xxx is the id of the accompanying tracker id.
Duplicate posts about the same id. +1 posts are not allowed.

Moderators: leecollings, remb0

Post Reply
fwehrle
Posts: 41
Joined: Tuesday 11 February 2014 18:14
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Battery level indicator

Post by fwehrle »

Hi,

I notice that domoticz store battery level of devices and that we can set battery level in dummy device.
It's 2 nice features but where can we check/verify or simply view the battery level?
Is that a specific color for devices bricks (like when there goes red when it was not seen for a long time) ?

It would be nice to check battery level, in script and/or in web UI.

Thank you
Flapsie
Posts: 6
Joined: Saturday 24 May 2014 13:52
Target OS: Raspberry Pi / ODroid
Domoticz version: V3.5877
Location: Almere, The Netherlands
Contact:

Re: Battery level indicator

Post by Flapsie »

I think the device brick turns yellow when the battery level is low (you will also see "low" in the device list), but it won't show a percentage. Would be nice though...
Domoticz V 3.5877 on Raspberry Pi B (wheezy)
RFXtrx433 USB, FW 1015 - type 1
Various Oregon Scientific sensors & 2 Fritz!DECT 200 switches
fwehrle
Posts: 41
Joined: Tuesday 11 February 2014 18:14
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Battery level indicator

Post by fwehrle »

Maybe on real device. But on dummy, when I set battery level go 0, it set it go low in devices list, but the brick color don't change. So in standard uses, I never saw battery is low. :(
robertDomoticz
Posts: 1
Joined: Friday 15 January 2016 19:42
Target OS: NAS (Synology & others)
Domoticz version:
Contact:

Re: Battery level indicator

Post by robertDomoticz »

Hello, I modified script www/app/TemperatureController.js for showing battery level.
It's not very clean solution, but I missed this feature too (Domoticz v2.2112) .

You can try it.
Attachments
TemperatureController.js
script in www/app/
(30.36 KiB) Downloaded 248 times
screenshot
screenshot
temp_battery.png (19.66 KiB) Viewed 2996 times
pepeEL

Re: Battery level indicator

Post by pepeEL »

+1
It looks very very good
Send new Pull Request pm GitHub to Domoticz with this added...
User avatar
gizmocuz
Posts: 2482
Joined: Thursday 11 July 2013 18:59
Target OS: Raspberry Pi / ODroid
Domoticz version: beta
Location: Top of the world
Contact:

Re: Battery level indicator

Post by gizmocuz »

You can see the battery level in the devices tab
When the battery is to low, the sensor will turn yellow

most sensors (433Mhz) have only good/low, and low can take 2 months

So when you see a yellow sensor, just goto the devices tab
Quality outlives Quantity!
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest