this post was submitted on 18 Apr 2024
12 points (100.0% liked)
homeassistant
15080 readers
1 users here now
Home Assistant is open source home automation that puts local control and privacy first.
Powered by a worldwide community of tinkerers and DIY enthusiasts.
Home Assistant can be self-installed on ProxMox, Raspberry Pi, or even purchased pre-installed: Home Assistant: Installation
Discussion of Home-Assistant adjacent topics is absolutely fine, within reason.
If you're not sure, DM @GreatAlbatross@feddit.uk
founded 2 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
Yes, @thegreekgeek@midwest.social, now knowing that I can use sentence syntax in automations, I have built 1 automation to handle my specific needs. But each trigger is a hardcoded value instead of a "variable". For example, trigger 1 is "sentence = 'what is the date of my birthday'" and I trigger an action conditionally to speak the value of
input_date.event_1
because I know that's where I stored the date for "my birthday".What would be awesome is your 2nd suggestion: passing the name of the input_date helper through to the response with a wildcard. I can't figure out how to do that. I've tried defining and using slots but I just don't understand the syntax. Which file do I define the slots in, and what is the syntax?
I did just check to see if you can pass along wildcards in an automation, which you can! I used this automation:
This should give you a framework to build off of. It looks like when you don't define a list of slots in an intent it just passes the wildcard along in a slot.
That is HUGE! Thank you, @thegreekgeek@midwest.social! This makes customizing conversations from automations so much more powerful and flexible!
No problem! I've been puttering around trying to figure this out and this post gave me the push I needed lol
I'm embarassed but very pleased that your example also taught me about
set_conversation_response
! I had been using tts.speak, which meant I had to define a specific media player, which wasn't always I wanted to do. This is great!