So I have a switch for my pool pump and a switch for my pool heater, connected to a temperature guage that measures water temperature.
What I need is an automation or something that will keep my pump running while the heater is on. I have an example below of what I think I should be doing, but it doesn’t seem to work.
The issue is I use a timer from Tasmota, just in case there is a disconnect to HA the pump will still run everyday.
switch.01_nodemcu_1 (This is the Heater)
switch.02_nodemcu_3 (This is the Pump)
–What I need is a way for my pump to be activated if the heater is activated (the first automation acheives this), but if tasmota says turn off pump and the heater is still running at that time, I would like HA to overide this and instantly turn the pump back on.–
Any suggestions?
- id: main_pump_with_heater
alias: "Turn On Pool Pump With Heater"
trigger:
platform: state
entity_id: switch.01_nodemcu_1
to: 'on'
action:
service: switch.turn_on
entity_id: switch.02_nodemcu_3
- id: main_pump_with_heater
alias: "Turn On Pool Pump With Heater"
trigger:
platform: state
entity_id: switch.02_nodemcu_3
to: 'on'
condition:
condition: state
entity_id: switch.01_nodemcu_1
state: 'off'
action:
service: switch.turn_on
entity_id: switch.02_nodemcu_3