Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save peyanski/38e2bdaa7997891d203a55fc0d85922d to your computer and use it in GitHub Desktop.
Save peyanski/38e2bdaa7997891d203a55fc0d85922d to your computer and use it in GitHub Desktop.
alias: Garage Door Open At Night Notification
description: ""
triggers:
- trigger: state
entity_id:
- cover.garage_door
to: open
for:
hours: 0
minutes: 0
seconds: 10
conditions:
- condition: time
after: "16:00:00"
before: "08:00:00"
actions:
- action: ai_task.generate_data
data:
task_name: Garage door opened during the night
instructions: >-
Generate a funny passive aggressive notification (text and emojis only
and do not use yaml or other code) that the Garage door was opened
during the night which is strange and give only one answer/option
response_variable: generated_text
- action: notify.persistent_notification
data:
message: "{{ generated_text.data }}"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment