Conversations and Sentence Triggers with Automations in Home Assistant
Вставка
- Опубліковано 5 лип 2024
- It is now possible to get data BACK from service calls in Home Assistant rather than just telling a thing to do something. I take a quick walk through of the conversation.process and calendar.lists_events responses as well as triggering an automation with conversational sentences.
Links:
Blog: www.mostlychris.com
Blueprint: www.home-assistant.io/bluepri...
OpenAI Conversation: www.home-assistant.io/integra...
Weather Integrations: www.home-assistant.io/integra...
Notifications: www.home-assistant.io/integra...
Support this channel by becoming a member:
/ @mostlychris
Discord: / discord
If you would like to support me:
Buy me a beverage: ko-fi.com/mostlychris
Become a patron: / mostlychris
Products I reference in my videos (contains affiliate links)
www.mostlychris.com/my-smart-...
My Website: www.mostlychris.com
DISCLAIMER: Some of the links above take you to affiliate sites that may or may not pay a small commission to me. It doesn't increase the cost to you, but it does help support me in making these videos.
Want to send me something? Send it here!
Mostlychris
24165 IH-10 West
STE 217 Box 164
San Antonio, TX 78257
#HomeAssistant
#HomeAutomation
#SmartHome
#automation
00:00 Intro
00:30 Services respond with data
01:50 Requirements for Blueprint
02:28 OpenAI Integration
04:35 Installing the Integrations
05:47 Add the Blueprint
06:36 Create Automation from Blueprint
08:37 Test the automation
09:38 Change notification service to Alexa speaker
11:03 Sentence Trigger for automation
12:33 Create new blueprint for sentence trigger
16:48 Use the new automation with sentence trigger
19:05 Call automation with Assist - Наука та технологія
Excellent explanation! Thank you!
Thank you!
Did you ever figure out how to get it to respond to the device you asked the command sentence to? I would like to ask the Home Assistant Assist a question and get it to respond with the data in that same Assist window.
Another great tutorial. Thank you!
You're welcome. Thanks for watching!
This is a big feature for me but we need some expansion to services that provide feedback. So far as Open AI they gave me a $5 starting credit with my free account. I still haven't paid for anything after months of having it. The credit wasn't mentioned anywhere until I got my API key.
I didn't know about the credit and didn't know until you mention it here. I supplied some money I think but it's minimal cost to make a query.
Created a morning report but it says I have an hour before my next meeting and the meeting is actually starting now. Why is chat GPT an hour off? My HA time zone is set correctly
Nicey explained. Im currently playing with making ESPHome based assistants. Still kinda too early days though, needs more refinements.
Thanks. I see many ways this could be enriched but as you said, still early days.
Im stumped Chris, I dont use yaml and stay away from it I get this error: Invalid blueprint: extra keys not allowed @ data['blueprint']['input']['command_sentence']['Default']. Got 'Tell me my day' extra keys not allowed @ data['blueprint']['input']['command_sentence']['Description']. Got 'Sentence to listen for'
It's pretty hard to know without seeing the code and since YT comments don't really allow for showing code blocks, dumping the code into Discord so it can be looked at would be helpful for troubleshooting.
Can we get this working with tts?
And change language for the conversation
I have my smart speakers giving me the output. The assist pipeline can do many different languages with more being added all the time.
Google "Notify using tts", there you learn how you can set up the notify service for tts. You can then just change the field that says notify.notify to your new notify.tts you created. That will play this on a media player. If you are using google home or Alexa, you can also use ifttt to set up a custom command that will trigger this automation
@@fredamn76just translate what it says at the bottom to your language. If you still get the wrong language sometimes, go into the automation, next to openai conversation, click the gear icon and add a last row to the text which says. "always replay in the same language as the user". If you are still having trouble or getting bad answers, try changing the gpt-3.5-turbo to "gpt-4". That model is much smarter and for me even told me stuff like, it's unusually rainy for this time of the year, grab your umbrella.
This is a good start, but my android phone does this much easier and doesn't cost any money.
Well..except the phone and the phone plan ;)