Skip to content

Instantly share code, notes, and snippets.

@peyanski
Created August 20, 2025 06:38
Show Gist options
  • Save peyanski/35193e6c31eac224c054cb35a6ca8960 to your computer and use it in GitHub Desktop.
Save peyanski/35193e6c31eac224c054cb35a6ca8960 to your computer and use it in GitHub Desktop.
alias: TV Off During Day Notification
description: ""
triggers:
- trigger: state
entity_id: input_boolean.tv
to: "off"
for:
minutes: 1
conditions:
- condition: time
after: "09:00:00"
before: "22:00:00"
actions:
- action: ai_task.generate_data
data:
task_name: TV not turned on during the day
instructions: >-
Generate a funny passive aggressive notification (text and emojis only
and do not use yaml or other code) that TV was not on during the day
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