Added Weather AI

This commit is contained in:
2026-06-14 02:01:06 -04:00
parent 89ac3bd24f
commit ee8f221d39
+65
View File
@@ -114,3 +114,68 @@ toggle_nest_fan:
data: data:
duration: 01:00:00 duration: 01:00:00
description: Toggles the Nest fan on for 1 hour or turns it off if already on. description: Toggles the Nest fan on for 1 hour or turns it off if already on.
weather_and_comfort_report:
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_weather_hilo'') }}°C
- Weather condition: {{ states(''weather.forecast_home'') }}
- Living Room: {{ states(''sensor.living_room_living_room_temperature'') }}°C
(Humidity: {{ states(''sensor.living_room_living_room_humidity'') }}%)
- Bedroom: {{ states(''sensor.bedroom_nest_temperature_sensor_bedroom_temperature'')
}}°C
- Basement: {{ states(''sensor.basement_nest_temperature_sensor_basement_temperature'')
}}°C
- Leo''s Room: {{ states(''sensor.leo_room_nest_temperature_sensor_leo_room_temperature'')
}}°C
- Seraphine''s Room: {{ states(''sensor.seraphine_room_nest_temperature_sensor_seraphine_room_temperature'')
}}°C
Generate a funny weather description and assess indoor comfort level across
the different zones of the house. Both should be funny.
'
structure:
weather_description:
description: A humorous description of the current weather outside
required: true
selector:
text: {}
indoor_comfort:
description: Overall assessment of how comfortable it is inside compared
to outside
required: true
selector:
text: {}
zone_breakdown:
description: A quick summary detailing if any specific rooms (like the bedroom
or basement) are too hot, cold, or perfect
required: true
selector:
text: {}
response_variable: comfort_report
- action: notify.persistent_notification
data:
title: "\U0001F3E0 Home climate report"
message: "\U0001F324 **Weather outside:**\n{{ comfort_report.data.weather_description
}}\n\n\U0001F6CB **Indoor comfort:**\n{{ comfort_report.data.indoor_comfort
}}\n\n\U0001F4CA **Zone Breakdown:**\n{{ comfort_report.data.zone_breakdown
}}\n"
- action: notify.notify
data:
title: "\U0001F3E0 Home climate report"
message: "\U0001F324 **Weather outside:** {{ comfort_report.data.weather_description
}} \U0001F6CB **Indoor comfort:** {{ comfort_report.data.indoor_comfort
}} \U0001F4CA **Zone Breakdown:** {{ comfort_report.data.zone_breakdown
}}"