Hi all
I'm not a great lover of dashboards, as I try to get my home automation to be as automatic as possible. The following is a straightforward rule that I've created in Rule Machine to check if my lights & devices have obeyed my Good Night command via Alexa and if not to give a verbal warning. I thought I would share in case, anyone else would find this useful.
Some context:
I have an Alexa routine that is triggered by the voice command 'Good Night'. This routine changes the Mode to Night and turns off all my internal lights within Hubitat and turns off my wi-fi external lights and pond pump.
Sometimes, when I get up in the morning, I find that one or more lights have failed to turn off and I then have to manually turn these off. Normally these are wi-fi external lights.
Goal
After I have triggered the Good Night routine, I would like a warning in my main bedroom if any lights failed to switch off.
Approach
I have an instance of Home Assistant running on a Raspberry Pi which I have linked to my HE, via the User App - Home Assistant Device Bridge. This enables the wi-fi devices to be added to HE without any other driver code and I use HE to control all automations.
I then created a Group within HE>Groups & Scenes for three Zones: Zone One - Living Area; Zone Two - Sleeping Area; and Zone 3 - Outside. As well as adding the devices from the relevant areas to each group, I have also selected the following options within each Group set-up:
- Use group device to indicate if any members are on;
- Show group state in group device
e.g.
I then created a rule that checked Zone 1 and 3 to ensure that everything was turned off and if not write to the log and issue a verbal warning, if not the case:
I hope someone may find this useful