I’d like a button on my dashboard to switch on a radiator (plugged into an IKEA outlet) for a set period of time (30 mins, 1 hour, etc), much like an immersion / water heater Boost button. Any tips on how to go about this?
Depends on what you want to do. E.g. you could create 2 helpers, an input_boolean
and an input_number
and use them in an automation like this:
trigger:
- platform: state
entity_id: input_boolean.booster
from: 'off'
to: 'on'
condition:
- condition: state
entity_id: your Ikea plug
state: 'off'
action:
- service: homeassistant.turn_on
target:
entity_id: your Ikea plug
- delay:
minutes: "{{ states('input_number.booster') |int(30) }}" ## will survive reloads and restarts
- service: homeassistant.turn_off
target:
entity_id:
- your Ikea plug
- input_boolean.booster
1 Like