Simple blueprint to use an input boolean to snooze an automation by a configurable number of minutes. I use this to snooze motion lights in some places.
blueprint:
name: Snooze Button
description: Snooze an automation for a time using and input boolean
domain: automation
input:
snooze_button:
name: Snooze Button
description: The input boolean to use as the snooze button
selector:
entity:
domain: input_boolean
target_automation:
name: Target Automation
description: The automation to snooze
selector:
entity:
domain: automation
snooze_minutes:
name: Snooze Minutes
description: The time in minutes to snooze for
selector:
number:
min: 1
max: 1440
trigger:
- platform: state
entity_id:
- !input snooze_button
from: "off"
to: "on"
condition: []
action:
- service: automation.turn_off
data: {}
target:
entity_id: !input target_automation
- wait_for_trigger:
- platform: state
entity_id:
- !input snooze_button
from: "on"
to: "off"
timeout:
hours: 0
minutes: !input snooze_minutes
seconds: 0
milliseconds: 0
- service: automation.turn_on
data: {}
target:
entity_id: !input target_automation
- service: input_boolean.turn_off
data: {}
target:
entity_id: !input snooze_button
mode: restart