Need help with night stand light


#1

1) Give a description of the problem
i have a wall switch that when i turn on i want to trigger a 2 channel plug to turn on and when i turn the switch off i want it to trigger the plug off. but i also want to use google home to trigger the switch. hope that makes scenes,

2) What is the expected behavior?
(PUT YOUR INFO HERE)

3) What is happening/not happening?
(PUT YOUR INFO HERE)

4) Post a Green Snapshot of the pistonimage
(UPLOAD YOUR IMAGE HERE)

5) Attach any logs (From ST IDE and by turning logging level to Full)
(PASTE YOUR LOGS HERE BETWEEN THE MARKS)

REMOVE BELOW AFTER READING
If a solution is found for your question then please mark the post as the solution.


#2

IF
wall switch’s switch IS on
THEN
with 2-channel plug
turn on
ELSE
with 2-channel plug
turn off

If you toggle the wall switch physically, via the ST app or using Google Home, the end result will be the same, the plug will also toggle.