I have around 8 HUE motion sensors in my house. I can write a script that checks them all individually like i did for my doors but that are only 3 (i know should be done in a loop too).
The jinja help file doesn’t give me much info on how to access the Helper if have named motion_sensors.
If you are trying to check for motion on any of the sensors then probably the best way would be to put them in a helper group. The group sensor will be triggered if any individual sensor in the group is triggered.
They are in a helper group, i would like to run a monthly check to look at battery status and if they go below 10% message me the one (or more) that are below 10%.
I have them in a helpergroup so how can i use a script to loop through the objects in a helpergroup?