Skip to content

Instantly share code, notes, and snippets.

@amitkeret
Created April 13, 2025 08:32
Show Gist options
  • Save amitkeret/ebd3c64f408b9c5e4e0ca6b843c94681 to your computer and use it in GitHub Desktop.
Save amitkeret/ebd3c64f408b9c5e4e0ca6b843c94681 to your computer and use it in GitHub Desktop.
Home Assistant one-time automation (fires at a specific date/time and disables itself)
blueprint:
name: One-Time Scheduled Action
description: Perform an action at a scheduled date and time.
domain: automation
input:
what:
name: Action to do
description: What kind of action?
selector:
action:
when:
name: When to do it
description: When should the action occur?
selector:
datetime:
trigger:
- platform: time
at: !input when
condition: []
action:
- choose:
- conditions: '{{ true }}'
sequence: !input what
- service: automation.turn_off
target:
entity_id: '{{ this.entity_id }}'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment