Detect Google Assistant In Rules

Hello, I would like to make different rules to when google assistant changes a state of a item or when a user clicks on the interface. Is there any way to detect in rules if the request is cumming from google assistant or from the user clicking in the interface?

Thank you

No, you can’t.

But, you can make a dummy item and expose this item to Google Assistant.
With a rule, you can change the other item.

Switch My_GA_Switch "My GA Switch" ["Lighting"]
Switch My_Normal_Switch "My Normal Switch"
rule "my rule"
when
     My_GA_Switch received command
then
    // Do your stuff here
    My_Normal_switch.sendCommand(receivedCommand)
end
1 Like

That was my solution :slight_smile:

Thank you for the help