Hello, I am trying to automate a switch to be set to ON (sonoff) when my batteries are at 100 (or 99)%. I’ve created the below automation but obviously, it’s not triggering. I’ve tried different settings, call to service, device etc but didn’t work. any suggestions?
Thank you in advance
alias: ON 1
description: ""
trigger:
- platform: numeric_state
entity_id: sensor.solarman_battery_soc
above: 99
condition:
- condition: and
conditions:
- condition: state
entity_id: switch.sonoff_100123112
state: "off"
- condition: numeric_state
entity_id: sensor.solarman_battery_soc
above: 99
action:
- type: turn_on
device_id: 19297ed30adc25c1ecbasdsds31321
entity_id: switch.sonoff_100123112
domain: switch
enabled: true
mode: single