#Blueprint to turn off an entity after a custom specified time; each time

6 messages · Page 1 of 1 (latest)

night urchin
#

Hey, I've checked the Forum for a bit of time but haven't found quite what I'm looking for.

I was wondering if there is a blueprint or recommendation that would allow me to turn on an entity at a moments notice but then specify how long it should be on for such as 1 hour before it turns off?

To be clear I don't want it to turn on at certain time(s), I want to just press a button that says turn on, perhaps for example a helper that then allows me to say how long for then it actions this request.

unique pulsar
#

that's a pretty easy automation to set up

#

you'll need an input button and an input datetime with time&date enabled

mossy laurel
#

A really quick and dirty automation to handle it that just sees if it's been on for an hour and turns it off. This could be enhanced a lot more, but it's a place for you to start:

description: ""
mode: single
trigger:
  - platform: state
    entity_id:
      - light.kitchen_ceiling
    from: "off"
    to: "on"
    for:
      hours: 1
      minutes: 0
      seconds: 0
condition: []
action:
  - action: light.turn_off
    metadata: {}
    data: {}
    target:
      entity_id: light.kitchen_ceiling
night urchin
night urchin