Can’t for the life of me work out why, but the automation is triggering 3 times at the same time.
There is only one trigger, and a few conditions however when the automation runs, it runs 3 times, and one will always pass even if all conditions are failing to be met.
This is the yaml
alias: Current above next or average
description: ""
trigger:
- platform: state
entity_id:
- sensor.agile_current_rate
condition:
- condition: or
conditions:
- condition: template
value_template: >
{{ states('sensor.agile_current_rate')|float >
states('sensor.agile_avg_rate')|float }}
- condition: template
value_template: "{{ states('sensor.owl_intuition_solar_exporting')|float > 400}}"
- condition: template
value_template: >
{{ states('sensor.agile_current_rate')|float >
states('sensor.agile_next_rate')|float }}
action:
- service: switch.turn_off
data: {}
target:
entity_id: switch.battery_settings
- delay:
hours: 0
minutes: 0
seconds: 3
milliseconds: 0
- service: switch.turn_off
data: {}
target:
entity_id: switch.battery_settings
- device_id: idhere!
domain: mobile_app
type: notify
message: not charging
title: above av or next
mode: single
Any ideas why this seems to be broken?