Hi all,
I am pretty new to HA but I already love it!
I have a problem with a simple automation: I have a MQTT power switch (Sonoff Pow R2) connected to a power strip where I attached a TV and an oven.
I want that HA turns off the switch if all appliances are powered off for 30 miinutes.
I use this automation:
- id: spegni_cucina
alias: Spegnimento automatico cucina
trigger:
- platform: numeric_state
entity_id: sensor.cucina_potenza_attuale
value_template: '{{states.sensor.cucina_potenza_attuale.state}}'
below: 5
for: '00:30:00'
condition:
- condition: state
entity_id: switch.cucina
state: 'on'
action:
- service: switch.turn_off
data:
entity_id: switch.cucina
Automation works only if I switch on at least one appliance. If all remains powered off the automation does not triggers.
Any idea?
Thanks in advance!!!