Skip to content

Instantly share code, notes, and snippets.

@timmo001
Last active February 4, 2024 20:17
Show Gist options
  • Save timmo001/dc08d71bcc064b850e0bce355a00bf14 to your computer and use it in GitHub Desktop.
Save timmo001/dc08d71bcc064b850e0bce355a00bf14 to your computer and use it in GitHub Desktop.
Conversation Agent - Weather update (No LLM)
blueprint:
name: Conversation Agent - Weather update (No LLM)
description: A blueprint for a conversation agent that provides weather updates (no LLM)
domain: automation
input:
response_text:
name: Response Text
description: The response text to use when the weather is requested
default: >-
The current weather is {{ states(weather_entity) }} with a temperature of {{
state_attr(weather_entity, 'temperature') }}{{
state_attr(weather_entity, 'temperature_unit') }} at {{ state_attr(home_zone, 'friendly_name') }}.
selector:
text: {}
home_zone:
name: Home Zone
description: The zone to get the weather for
default: zone.home
selector:
entity:
domain: zone
weather_entity:
name: Weather Entity
description: The weather entity to get the weather from
default: weather.accuweather
selector:
entity:
domain: weather
trigger:
- platform: conversation
command:
- weather [update]
- what is the weather [today]
condition: []
action:
- variables:
home_zone: !input home_zone
weather_entity: !input weather_entity
- set_conversation_response: !input response_text
mode: single
@timmo001
Copy link
Author

timmo001 commented Feb 4, 2024

Currently generates

The current weather is partlycloudy with a temperature of 10.9°C at Home.

No known way of translating the template, but is functional

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment