1. Chose water level sensor:
a. output dry contact for OPEN/CLOSE singal.
b. output DC 0-5v analog voltage.
2. create a new automation:
water-level-control-output4-on (turn on relay)
-------------------------------------------
Trigger type: State
Entity: input-1
To: on
Actions:
Action type: Call service
Service: Switch:Switch: Turn on
+ Choose entity
water-level-control-output4-off (turn off relay)
------------------------------------------
Trigger type: State
Entity: input-1
To: off
Actions:
Action type: Call service
Service: Switch:Switch: Turn off
+ Choose entity