I’m having trouble with an automation, I’d really appreciate if someone could take a look and point out what I’ve done wrong. I’m trying to turn the spa heater on when the solar panels are producing excess power. But this trigger never fires.
alias: Solar Spa automation
description: ""
trigger:
- platform: numeric_state
entity_id: sensor.solar_generation
for:
hours: 0
minutes: 0
seconds: 0
value_template: ""
above: 2000
id: "on"
- platform: numeric_state
entity_id: sensor.solar_generation
for:
hours: 0
minutes: 2
seconds: 0
value_template: ""
id: "off"
below: 200
condition:
- condition: state
entity_id: input_boolean.solar_spa
state: "on"
action:
- choose:
- conditions:
- condition: trigger
id: "on"
sequence:
- service: switch.turn_off
data: {}
target:
entity_id: switch.my_spa_economy_mode
- conditions:
- condition: trigger
id: "off"
sequence:
- service: switch.turn_on
data: {}
target:
entity_id: switch.my_spa_economy_mode
mode: single