Skip to content

Instantly share code, notes, and snippets.

@peyanski
Created August 20, 2025 06:51
Show Gist options
  • Save peyanski/137ae70c0557b1217266755eafe63653 to your computer and use it in GitHub Desktop.
Save peyanski/137ae70c0557b1217266755eafe63653 to your computer and use it in GitHub Desktop.
alias: Weather and comfort report
sequence:
- action: ai_task.generate_data
data:
task_name: weather comfort report
instructions: |
Based on the current conditions:
- Outdoor temperature: {{ states('sensor.outdoor_temperature') }}°C
- Indoor temperature: {{ states('sensor.family_room_temperature') }}°C
- Indoor humidity: {{ states('sensor.family_room_humidity') }}%
Generate a funny weather description and assess indoor comfort level.
structure:
weather_description:
description: A humorous description of the current weather outside
required: true
selector:
text: null
indoor_comfort:
description: Assessment of how comfortable it is inside compared to outside
required: true
selector:
text: null
response_variable: comfort_report
- action: notify.persistent_notification
data:
title: 🏠 Home climate report
message: |
🌤️ **Weather outside:**
{{ comfort_report.data.weather_description }}
🛋️ **Indoor comfort:**
{{ comfort_report.data.indoor_comfort }}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment