I think this is possible, but I can't figure it out..
I'm trying to control a valve by voice (google assistant). I think Google needs a button or switch because it doesn't work with a valve.
so, virtual switch to the rescue! I can have the switch open and close the valve.. but I would really like the switch state to reflect the same state as the valve too.. on when valve is open, etc.
can someone help me figure this out? I know rule manager can have a trigger when the valve state changes. but, how can I set the switch state without re-triggering the valve? does that make sense?