HI All,
Please confirm if this is the correct format for IF & OR statement automation, I basically want to execute the following;
At 11:00 If the select.victron_vebus_mode_227 is INVERTER AND the battery SOC is above 30% switch on Geyser.
If the battery SOC is below 30% and the mode is INVERTER, do not switch on the geyser.
If the select.victron_vebus_mode_227 is ON, switch on the geyser regardless of the battery SOC.
alias: Geyser -> Auto ON
description: ""
trigger:
- platform: time
at: "11:00:00"
condition:
- condition: or
conditions:
- condition: state
entity_id: select.victron_vebus_mode_227
state: INVERTER
- condition: and
conditions:
- condition: numeric_state
entity_id: sensor.victron_battery_soc
above: 30
- condition: or
conditions:
- condition: state
entity_id: select.victron_vebus_mode_227
state: "ON"
action:
- service: switch.turn_on
target:
entity_id: switch.sonoff_10021f7cbd
data: {}
mode: single