Activate Different Switches by Voice in Google Assistant, based on time of day

This is probably more of a Google Assistant or general home automation question than a Hubitat question...but it's something that may be able to be done with RM-4.0, and I just can't figure it out.

In our Master Bedroom, I have our bedside lamps, overhead light, master bath, and walk-in closet configured as smart devices (switches/plugs...no Hue or other smart bulbs).

I would like to configure things with Google Assistant to respond in multiple ways to the command, "Hey Google, turn on the lights in the master bedroom," depending on mode or time of day:

  • Day: Overhead light goes on.
  • Evening/Night/Away: Only bedside lamps go on.
  • Walk-in closet/master bath lights should only turn on if specifically told to.

...and of course, if I say, "...turn off the lights," I want all lights to go off (including closet and Master Bath).

I know I can configure switch groups for each of these scenarios, and I can activate the appropriate groups from a rule, based on mode/time-of-day and then only expose that virtual switch to Google for the Master Bedroom. The only reason I haven't done this is that I'd like to also be able to control each light individually by voice ("...turn on Overhead Light," "...turn on Doug's Lamp," etc.).

Is this possible, or am I trying to do too much based on context?

PS - I'm fairly new to the community, so if I'm posting this in the wrong place, please let me know.

You could create a virtual switch, which you expose to Google as the generic switch. Then create a RM rule on the state change (or two rules, one for on, the other for off) of the virtual switch to make the time based decision on which switch to control when the virtual switch turns on; then all of when the v-switch goes off.

You can also publish the individual lights to Google.

This is what I have at the moment.

...as well as this.

However, "...turn on the lights in the Master Bedroom" turns on ALL the lights, because it flips all the switches, not just the ones governed by the rule. I suppose that I could group the remaining lights into a separate "room" in GA, but then I also get that annoying verbal acknowledgement when I activate/deactivate those lights, because they're in a different room.

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.