I have a google assistant, two Hue lights, two motion sensors. One of each in two different rooms.
My goal is to say a command to Google assistant and then with ifttt trigger the Virtual Switch that should turn the light to 100% in the room where motion is presence or have been presence under latest 60 sec. But only if the dimmer level is already below 71%, or lamp is off. And the same command that trigger ON, should also be a trigger for the lamp or lamps to be set in it's previously state. (off or at a certain dimmer level).
Tried various setups with alot of rules in rule machine but non work 100%. The command "Ok google Daylight" triggers the Virutal Switch and it works great. So that part is no problem. The problem begins with RM rules and all the switches.
How could a working rule or rules for this scenario look like?. Any help or theories would be very appreciated