ghostbuster
Expert Member
I'm struggling to get this automation to run
Pretty much want the pump to run if there's no load shedding and inverter voltage is greater than 0
alias: Pool pump timer 1
description: ""
triggers:
- at: "11:00:00"
trigger: time
conditions:
- condition: state
entity_id: sensor.load_shedding_area_jhbcitypower3_
state: "off"
- condition: template
value_template: "{{ states('sensor.deye_sunsynk_sol_ark_grid_voltage') | float(0) == 0 }}"
actions:
- target:
entity_id: switch.pool_pump_switch_0
action: switch.turn_on
data: {}
- delay:
hours: 3
minutes: 0
seconds: 0
- target:
entity_id: switch.pool_pump_switch_0
action: switch.turn_off
data: {}
mode: single
Pretty much want the pump to run if there's no load shedding and inverter voltage is greater than 0
alias: Pool pump timer 1
description: ""
triggers:
- at: "11:00:00"
trigger: time
conditions:
- condition: state
entity_id: sensor.load_shedding_area_jhbcitypower3_
state: "off"
- condition: template
value_template: "{{ states('sensor.deye_sunsynk_sol_ark_grid_voltage') | float(0) == 0 }}"
actions:
- target:
entity_id: switch.pool_pump_switch_0
action: switch.turn_on
data: {}
- delay:
hours: 3
minutes: 0
seconds: 0
- target:
entity_id: switch.pool_pump_switch_0
action: switch.turn_off
data: {}
mode: single