It moves in 15seconds to left and 15 seconds to right. It’s a 3-way ball valve and I want to use it to send water from 1 source to 2 targets.
I want to use a dual relay board to control the open and close via separate relais. If I would use 1 relais there would always be 230v on 1 of 2 wires and I do not want that.
I would like to have a “switch” in esphome in a way that it is on/off where on is left and off is right.
Don’t ask but the “yellow/green” really is in use.
I want: to get 1 switch in HA able to control 2 relays in an interlock way… I prefer to do this in esphome and not HA and hide the actual relays (internal: true).
Why not use one of the relays as the “main” switch and the other as intended.
So from your L to common in the lower relay.
The NO of the lower relay goes to the common in the upper relay.
The NO and NC of the upper goes to the valve.
That way you can switch of the power from one relay and use the other to change direction.
If I want the valve to turn “left” I need to put 230v om the brown wire for 15s.
If I want the valve to turn “right” I need to put 230V on the yellow wire for 15s.
(blue is always neutral).
I think this way, of using 2 relays is most safe as it only send 230v to one of the wires (left/right).
Invalid config for ‘template’ at configuration.yaml, line 99: invalid template (TemplateSyntaxError: unexpected ‘}’) for dictionary value ‘sensor->4->state’, got ‘{% if states('switch.3_way_valve') == “on”}\n left\n{% else %}\n right\n{% endif %}\n’