Is there a way yet that I am unaware to create device groups? This way I can select something by a whole rather than individually.
Use case, if battery level is below 35% for any device with that attribute, then trigger the background color of a navigation tile to “X” color and change the icon animation (with new style editor) to “X”.
I used a Variable tile for the exact setup in my dashboard. I basically have a True/False variable and a rule to set this variable to true if any of my sensors battery is below the certain %. Added this variable to dashboard as a Variable Tile, and configure the state mapping to highlight in red if it’s
True. Change the Tap Action to open a hyperlink, and use the other dashboard’s link as the URL, so it will navigate to the other dashboard when tapped, which allows me to see which exact sensor(s) is having lower battery %.
But did you have to add each and every device independently? That is what is throwing me off.
This one variable tile actually aggregates all of my leak, motion, and contact sensors’ battery health. (You can add multiple triggers in a rule if this was what made you think you had to do this for each individual device?) So the short answer is no, you don’t need to create a variable and a rule for a each individual device. But, if you want, you can create this aggregation for each type of device if that makes more sense to you. Ex: have one aggregation for all motion sensors, and another aggregation for all leak sensors.
Here is the quick example of my aggregation rule, and hope this helps:
- Trigger: when the sink leak sensor battery is changed and more than 0, or when the living room motion sensor battery is changed and more than 0, or when the front door contact sensor battery is changed and more than 0
- Flow: If sink leak sensor, or living room motion sensor or the front door contact sensor’s battery is below 80, set variable
$isAnyBatteryLow to true; else set
$isAnyBatteryLow to false.
And $isAnyBatteryLow is the variable I added in my dashboard as the variable tile.