Created At
Jul 15, 2018
Created By mysmarthome-cba-pl
Scene check battery level of all battery-operated devices.
Created At
Jul 15, 2018
Last Update
Jul 30, 2018
Platforms
HC 2
Views
10654
Download
1158
FUNCTIONS
The scene checks the status of all battery devices and displays information about battery levels in the debug window. It will also inform you if the level drops below 20%
INSTALATION
HOW TO USE
Manually - just press start button
Automatically – you need to add at the beginning of the code:
local t = os.date("*t")
--scene will be performed every 19th at 10:20
if (t.day == 19) and (t.hour == 10) and (t.min == 20) then
--remember to add "end" of the end of whole code
end
this will cause the scene to start automatically once a month at a given time.
RIGHTS
I allow code to be reuse or change. Also labels can be translated and adjust.
I have used this scene as the basis for a VD that is now also in the market place. It's called "Battery Monitor". In doing so, I also ran in the "V+1" versus" "V" situation, not sure if it is related to what you are experiencing: The battery levels will be returned for the master devices. My VD also checks if the device is dead or not. I started checking for dead devices because even if the device is dead, it will keep returning its last battery level. That check will return a list of the child devices (master_id_+1, master_id+2, ...), Weird, but that is what I found in my attempts to solve it. More details in the code of the VD, it may give some clues.
Solved: change "V+1" to "v" - search replace all. It works then.
I have exactly the same problem as raeædk also ):
I had the same problem with realdk. Has there been any change on HC2 that has invalidated the code or should something be set?
Can a Battery Check be made for Fibaro HC3? I am not aware to do such a thing