home automation training -19-water level sensor for automation in home assistant
- 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: onActions:
Action type: Call service
Service: Switch:Switch: Turn on
+ Choose entitywater-level-control-output4-off (turn off relay)
——————————————
Trigger type: State
Entity: input-1
To: offActions:
Action type: Call service
Service: Switch:Switch: Turn off
+ Choose entity