Тёмный

Using ChatGPT In Your Smart Home for $0.01 a MONTH?!  

Future Smart Home
Подписаться 4,4 тыс.
Просмотров 46 тыс.
50% 1

This video shows you how to use OpenAI and ChatGPT in Home Assistant. For less than $0.01 a month, your smart home can send you some seriously cool notifications!
00:00 Intro to A.I. in My Smart Home
00:42 Air Quality Notifications
01:40 Energy & Water Usage Notification
03:18 A.I. For Kids
04:23 Setup ChatGPT in Home Assistant
07:14 Walkthrough A.I. For Kids
13:20 Walkthrough Energy Usage
16:42 Walkthrough Air Quality
18:19 Cost $0.01 A Month
If you're looking for the code that I use in this episode. Check it out here on my NEW Substack page futuresmarthome.substack.com/...

Опубликовано:

 

2 июн 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 115   
@FutureSmartHome
@FutureSmartHome 16 дней назад
If you want to take a look at the code I used in these examples, I've posted them here. Thanks for watching! open.substack.com/pub/futuresmarthome/p/ai-in-your-smart-home?r=3wof2h&showWelcomeOnShare=true
@brianwilliams6113
@brianwilliams6113 4 часа назад
You should really look into wyoming
@FutureSmartHome
@FutureSmartHome 3 часа назад
On my list!
@holohane
@holohane 15 дней назад
Nice video. Certainly sets the mind going with possible ideas. Thanks for your work and good luck with your channel. Eddie.
@FutureSmartHome
@FutureSmartHome 15 дней назад
Thank you for the kind words!! That’s exactly what I was going for.
@drjasinski
@drjasinski 13 дней назад
Thanks, works great here. Now I can’t wait to hear the latest weather report!
@FutureSmartHome
@FutureSmartHome 13 дней назад
Love it! Hope you enjoyed it!
@Dmkjr
@Dmkjr 15 дней назад
Very detailed walk through. Love it. Subscribed.
@FutureSmartHome
@FutureSmartHome 15 дней назад
Thank you so much!
@FutureSmartHome
@FutureSmartHome 15 дней назад
Thank you!!
@fatboyslimdusty
@fatboyslimdusty 4 дня назад
Awesome work, keep it up!
@saschare3916
@saschare3916 15 дней назад
Really great video. I've got many new ideas on what I can do next with my smart home.
@FutureSmartHome
@FutureSmartHome 15 дней назад
Awesome to hear. So glad it prompted some ideas!
@mikekane9734
@mikekane9734 15 дней назад
Perfect! Love that! Thank you for the video. Now we know how it works in your house, but to repeat it, it is not pretty clear in hardware and steps perspective. It feels like will be very hard to repeat. But I would loe to have something like that at home. So if you could start it from the very beginning and make a playlist of the videos... that would be awesome (tip for content of your new channel). P.S. I can see your API key, won't use it. but others can. Make sure you regenerate a new one.
@FutureSmartHome
@FutureSmartHome 15 дней назад
Thanks for the tips! Where did you see the API key? I’ll make sure to regenerate! Edit: I found the spot I missed! Thanks for the tip.
@samuraiintellectual
@samuraiintellectual 15 дней назад
Well done! You got a new sub!
@FutureSmartHome
@FutureSmartHome 15 дней назад
Thank you!!
@SamCastillo
@SamCastillo 10 дней назад
Have you seen OpenAI extended conversation. It’s got a lot of extra features including the ability to control devices. Apart from having it control all my lights etc I have added other things like adding to a shopping list. What’s really great is that I just need to give it my intent and it figures out what I want to do. Telling it I have run out of milk and it adds it or saying that it’s a bit dark downstairs and it turns the lights on is very cool.
@gregeezy
@gregeezy 15 дней назад
This really gets me excited, but currently way over my head as I've only really been digging into HAOS for about a month now. Looking forward to more tutorials about OpenAI integrations though.
@FutureSmartHome
@FutureSmartHome 15 дней назад
Glad you liked it! It can be a bit intimidating. But you’ll get the hang of it!
@nielsaxelsson
@nielsaxelsson 15 дней назад
Good examples well explained. I'm now subscribed. 😃 PS: As a Dane I liked and agree on the en-GB British accent remark 😂
@FutureSmartHome
@FutureSmartHome 15 дней назад
💯
@pjohnson21211
@pjohnson21211 15 дней назад
this is great!
@FutureSmartHome
@FutureSmartHome 15 дней назад
Thank you! Thanks for watching!
@brandonfertig
@brandonfertig 14 дней назад
Excellent. Privacy concerns seem valid, but this is excellent.
@FutureSmartHome
@FutureSmartHome 14 дней назад
Glad you enjoyed it!
@TheSlowestZombie
@TheSlowestZombie 14 дней назад
Thanks for this! I just followed the guide, but decided to make a tweak. ChatGPT seems pretty good at parsing Home Assistant data on its own, so to avoid complicated jinja, I just drop the forecast service response blob directly into the OpenAI API without hand feeding it "This is the temperature high" "This is the wind speed", etc. In the configuration for the service, I just told the agent that the weather is from home assistant data. I think there's a little more optimization to be done, but not actually having to use a giant block of text to parse out all the weather details is just as much a selling point as is the ability to have unique and amusing responses.
@FutureSmartHome
@FutureSmartHome 14 дней назад
This is a great point that I never tried! Will be adjusting mine as well for the future!
@jpcdn80
@jpcdn80 14 дней назад
Can you detail a little bit how this was done? I'm only seeing how you would pass text along. Thanks!
@TheSlowestZombie
@TheSlowestZombie 13 дней назад
@@jpcdn80 That's the neat part: It's all just text. From the video at around 12:18, in the Conversation.Process service, you can drop the whole "Current Conditions are below" with all the brackets. Instead, have the text: part just be the response variable from the "get forecasts" service call. Also, in the Integaration settings for Open AI, I have it configured just to deal with the weather. My system prompt is "Parse Home Assistant weather data and describe today's weather forecast using simple English. Don't describe tomorrow's weather or any other future date forecasts. Only use US measurement values. When describing temperatures, only use fahrenheit. Don't use celsius or kilometer measurements. When describing wind speed, round to the nearest whole mile per hour. Be fun, and use occasional jokes or sarcasm to make the response seem more genuine and unique." There are a few more tweaks I did that are hard to type out in a comment here but hopefully this gets the gist of it.
@welbeschikbaa
@welbeschikbaa 13 дней назад
@@TheSlowestZombie would you mind copy/pasting what you have in the text block of the conversation.process?
@TheSlowestZombie
@TheSlowestZombie 13 дней назад
@@welbeschikbaa Fingers crossed that the formatting works out. Here is my entire script: alias: Weather Report sequence: - service: alexa_media.update_last_called data: {} - service: weather.get_forecasts metadata: {} data: type: daily target: entity_id: weather.forecast_neptune response_variable: dailyforecast - variables: weatherparse: | {{ dailyforecast['weather.forecast_neptune'].forecast[0] }} - service: conversation.process data: agent_id: conversation.openai_conversation text: "{{ weatherparse }}" response_variable: openairesponse enabled: true - variables: plainresponse: | {{ openairesponse['response'].speech.plain.speech }} enabled: true - delay: hours: 0 minutes: 0 seconds: 0 milliseconds: 500 - service: notify.alexa_media_last_called data: message: "{{ plainresponse }}" enabled: true mode: single icon: mdi:weather-sunny-alert
@AndrewSpec
@AndrewSpec 15 дней назад
I was working and watching your video. This is so awesome that I'm replacing my voice notifications with this :D
@FutureSmartHome
@FutureSmartHome 15 дней назад
Glad to hear it, Thanks for watching!
@robertdalga128
@robertdalga128 15 дней назад
Thanks for the video, it was very interesting ! If I recall you said that the Open AI integration could report back on the status of all of your devices and/or entities in HA every morning (if you choose)? Is that right? Could it verbally give you a 'status report' ? Would this be difficult to setup? Lastly, I think it would be great if you could put out more vids on this subject. Thanks again.
@FutureSmartHome
@FutureSmartHome 15 дней назад
Thank you for watching! I’ll definitely do more videos like this in the future. And yes, you could create an automation like this. You can also have a conversation with it about your house and all of the sensors.
@robertdalga128
@robertdalga128 15 дней назад
@@FutureSmartHome Thanks. That would be a great tool to have for HA. Not surprisingly I have entities that go offline from time to time and getting a notification right away would be extremely helpful.
@alondinbar6193
@alondinbar6193 15 дней назад
Is it the latest version of chatgpt ? (4), and is it local? I guess also its can do us morning brief of calendar? Or even each time i want?
@FutureSmartHome
@FutureSmartHome 15 дней назад
It could totally do a morning briefing of your calendar. It’s not local. And this was before 4o
@strusic
@strusic 9 дней назад
Is it possible to use display to get responses from assist chat from ha? I have set pipeline with openAI but I want to get responses as notification. Simple > I say something to wyoming satellite and I want response as notification. Is it possible?
@DreamHeaven
@DreamHeaven 4 часа назад
Great video , thanks. If you could share any code snippets would be also nice
@FutureSmartHome
@FutureSmartHome 4 часа назад
Thanks for watching! Check out the pinned comment on this video - I link to my substack which has some snipped.
@pairos
@pairos 14 дней назад
Excellent video, can you show how to choose gpt4 or gpt 4o? There's no dropdown menu so Im not sure how to choose those ones. Thanks again!
@FutureSmartHome
@FutureSmartHome 14 дней назад
Thank you! Here is a list of models that are available and the corresponding value that you can type. platform.openai.com/docs/models/gpt-4-turbo-and-gpt-4
@pairos
@pairos 4 дня назад
@@FutureSmartHome Thank you so much!
@simonhinger8176
@simonhinger8176 15 дней назад
I will send my wifi scale data to ChatGPT so it will tell me to go to the gym more often. Awesome Video
@FutureSmartHome
@FutureSmartHome 15 дней назад
I might do that too! Thank you!
@simonhinger8176
@simonhinger8176 15 дней назад
@@FutureSmartHome is it also possible to give the OpenAI Integration controll over several entitys to control them?
@FutureSmartHome
@FutureSmartHome 15 дней назад
Yes. In the examples I showed, I’m sending data from multiple different systems.
@simonhinger8176
@simonhinger8176 15 дней назад
@@FutureSmartHome Ah sorry i just watches the Kids weather forecast. Great, thanks!
@SUPERTHESK
@SUPERTHESK 12 дней назад
Thanks , Everything works fine, but the responses are cut off. Is there a way to remove the character limit per response?
@FutureSmartHome
@FutureSmartHome 12 дней назад
Mobile notifications are limited in the amount of text you can send to the device via push. No way to change that.
@saninnsalas
@saninnsalas 13 дней назад
This is pretty cool. That said, since I learn the amount of resources (like water) used for each ChatGPT requests I feel like one have to really, REALLY, think before including ChatGPT or any other cloud based LLM into our automations. For things like this use case I would probably try to use some local LLM since rapid response is not an issue.
@FutureSmartHome
@FutureSmartHome 13 дней назад
Totally valid thing to be concerned about. Send me some of those stats if you come across them. I’ve heard training one of the models is the equivalent of 6 cars worth of lifetime emissions.
@saninnsalas
@saninnsalas 13 дней назад
@@FutureSmartHome I tried to link some stuff but RU-vid deleted my comments, probably because it though it was spam. You can just search for "ChatGPT water" and you will find several Articles from reputable sources likes Forbes about the topic. Also you can search for Google intent to put a server farm on Chile where the access to water was already a problem. The training cost that you says is what server farms can do, nothing even remotely possible on a home environment AFAIK.
@FutureSmartHome
@FutureSmartHome 12 дней назад
I’m exploring ollama for local GPT. Will probably do a video on it.
@stanleyso-vb7dy
@stanleyso-vb7dy 14 дней назад
Hi, how do you get the consumption for water and electricity? From provider or sensors?
@FutureSmartHome
@FutureSmartHome 14 дней назад
Both sensors. But check to see if your provider has an integration! Phyn (water) and Sense (electricity)
@lucasjb
@lucasjb 15 дней назад
Great video, you should change your key, you can see it at 5:42
@FutureSmartHome
@FutureSmartHome 15 дней назад
Good catch, thank you! I even tried to blur it out but must’ve cut the blur one frame too soon 😂
@FutureSmartHome
@FutureSmartHome 15 дней назад
And thanks for watching!
@sternlb1
@sternlb1 14 дней назад
Great video and idea, I will try it. Water sensor missing :-) I need it now... Immediately :-D Greetings from Germany
@FutureSmartHome
@FutureSmartHome 14 дней назад
Hello! So glad you liked the video. There are a few good water sensors out there!
@mrx2672
@mrx2672 10 дней назад
You can also just use the ollama integration and not have to pay or use the cloud. For a lower end computer, I use stablelm-sephyr model LLM. Works well.
@FutureSmartHome
@FutureSmartHome 9 дней назад
Yes! I’m actually working on a video about this and some of the pros and cons.
@Rich33527
@Rich33527 15 дней назад
Are you using a different API key for each service?
@FutureSmartHome
@FutureSmartHome 15 дней назад
Yes. It’s nice to be able to track usage per type. And I can set them up independently with different criteria.
@Techguru604
@Techguru604 14 дней назад
Why not run Ollama locally on your hassio box? All ran locally without external dependencies.
@RichAfroKid
@RichAfroKid 13 дней назад
That seems neat, but not nearly as approachable as using GPT. The minimum requirement of ~8GB of ram and multiple gigs of storage makes it a little steep for the average person. Once my GPT credit runs out, I'll look at switching to that myself.
@FutureSmartHome
@FutureSmartHome 13 дней назад
I will be looking into this!
@gabynevada
@gabynevada 11 дней назад
Also most open source models are not even close to as useful and "smart" as gpt4
@Techguru604
@Techguru604 11 дней назад
@@gabynevada Llama 3 is on par with gpt 4. Haven't tested against gpt 4o yet.
@gabynevada
@gabynevada 10 дней назад
@@Techguru604 Think I had only tested until Llama 2, gonna give Llama 3 a try then. Thanks!
@hotmonitor
@hotmonitor 15 дней назад
When install API key i have error: Unknown error occurred. How to fix this?
@FutureSmartHome
@FutureSmartHome 15 дней назад
I’m not totally sure. You’ll have to check k the home assistant logs to see more. Should be in settings.
@NickBouwhuis
@NickBouwhuis 2 дня назад
You know. All these small expenses add up. That is $0.12 a year! You could buy a year worths of API calls for that!
@speedracer9132
@speedracer9132 14 дней назад
It would be awesome to hijack google home/alexa speakers to access our home assistant gpt
@FutureSmartHome
@FutureSmartHome 14 дней назад
There are actually some projects out there that completely swap the boards in Google home mini with a custom system that could indeed do this!
13 дней назад
I'd prefer Anthropic haiku model as it's cheaper and better in many languages
@FutureSmartHome
@FutureSmartHome 12 дней назад
I’ll check it out!
@AndyBerman
@AndyBerman 14 дней назад
Great video. The title should say one cent a day, not a month.
@FutureSmartHome
@FutureSmartHome 14 дней назад
Thank you and thanks for watching. The GPT 3.5 model, which is mostly what I was using, was one cent a month for all of my usage in March.
@cakekomo
@cakekomo 12 дней назад
You might want to edit this video. You didn't hide your openai API key very well.
@cakekomo
@cakekomo 12 дней назад
Can also see where you live for the same reason. I mean it doesn't really matter, and you can redo the API keys, but just FYI. :)
@FutureSmartHome
@FutureSmartHome 12 дней назад
I did regenerate the API key but what do you mean you can see where I live?
@FutureSmartHome
@FutureSmartHome 12 дней назад
Actually, don’t respond i found it thank you!
@cakekomo
@cakekomo 12 дней назад
@@FutureSmartHome NP!
@wapphigh5250
@wapphigh5250 15 дней назад
Nice one. But I am concerned about privacy. I'm not sure I'm ready to let open AI enter my life and home.....Isn't Microsoft now involved? Seems you already have to hand over your credit card... so where is this heading? Whats next? A whole bunch of messages saying you've been signed up to xyz streaming service/news/energy company and security monitoring etc?
@FutureSmartHome
@FutureSmartHome 15 дней назад
Thanks for watching! A totally fair (& common) point of view. I feel ok with this because I am choosing to send the data when I want to and it’s not unfettered access. I wrote the code that sends the information so, that gives me some comfort.
@wapphigh5250
@wapphigh5250 15 дней назад
@@FutureSmartHome Sure. Its good that you have the skills to write the code. That;s awesome! Have subscribed and will follow the channel. I was just making the point having had smart home tech now well over a decade. I know where this can lead. I started with control4 and hated their "dealer only" model. That's why I love and switched to HA. Whilst I understand everyone needs to make a buck out of us home users, we need to be very wary what goes on behind the scenes and under the hood. HA is not like that (now) but could very well head that way (if we aren't careful). Just like FB.. starting out all groovy and "free" no subscriber model.. then 10 years on they are selling our data. I understand nabu casa has a very small subscriber fee for remote access.. that;s fine.. but will that be enough? Isn't "big data" where "the money is"? Probably out of the scope of this discussion, but doesn't Microsoft have their tentacles directly in the HA pie as well...? Thru an "interest" in github? This company (and their true motives) needs to be on everyone’s home automation "watch". That's all I'm saying 🙂
@Edu2pc
@Edu2pc 15 дней назад
In Ollama is free!
@udiakuka7889
@udiakuka7889 15 дней назад
That's fair concern. Not to say that I 100% agree, but if that is bothering you, you can always self host the Ai. Know that it might cost you a bit to get a computer that can respond quickly. If it interests you, check for ollama
@alexdoan273
@alexdoan273 15 дней назад
​@@wapphigh5250nowadays you don't even need the coding skill for this, just ask the AI to write it for you, and tell it to explain what the code does step-by-step. AI doesn't lie willingly
@My-noname
@My-noname 15 дней назад
Home assistant is all about NOT letting big tech into your home. There are locally hosted ai alternatives to use.
@ChrizzeeB
@ChrizzeeB 14 дней назад
Oh noooo😢😢😢 openAI knows i used 50 gallons of water this week😢😢😢😢
@FutureSmartHome
@FutureSmartHome 14 дней назад
I agree that is the core ethos of HA and I try to follow it. But while we don’t have good, readily accessible, local LLMs, I think this is an avenue for exploration. This isn’t a HACS integration, it’s the official & sanctioned integration with OpenAI.
@sierpus
@sierpus 14 дней назад
@@ChrizzeeB send all the internal data from all the sensors to OpenAI… really? Just to read the same notifications in a different way?
@thrawnis
@thrawnis 13 дней назад
No, HA is setup for whatever you want it to do. If you choose to share it with OpenAI, that’s your choice. If you choose not to share that info, that’s also your choice.
@My-noname
@My-noname 13 дней назад
@@thrawnis it is, yes, but "local control, local data" is the core value.
@danthetube5707
@danthetube5707 13 дней назад
When i run the 'text to speech' action in the automation i get the error message 'Error rendering data template: UndefinedError: 'agent' is undefined'. Further more, I have found that I don't get an agent id in a format like yours. I see the following 'agent_id: conversation.openai_conversation'. Can you help?
@FutureSmartHome
@FutureSmartHome 13 дней назад
A bit hard to troubleshoot via RU-vid comments BUT I’m guessing at the time you are calling the text to speech you haven’t set the response variable of the OpenAI conversation process to value “agent”. Also make sure you are indeed doing the conversation process action.
@danthetube5707
@danthetube5707 13 дней назад
@@FutureSmartHome I have followed your video instructions, creating the temporary action in the automation to determine the agent ID. I have noticed that I get an additional tick box to set, labelled 'conversation ID', which you don't seem to get in your setup.
@FutureSmartHome
@FutureSmartHome 13 дней назад
@@danthetube5707 I am a few home assistant versions behind so I’ll have to update and check it out.
@MarkSheppard72
@MarkSheppard72 9 дней назад
@@danthetube5707 Me also I have been trying this for a couple days. I have the response if I use dev tools, but I can seem to find it past there. I don't recive a # agent_id.
@MarkSheppard72
@MarkSheppard72 9 дней назад
@@FutureSmartHome you ever find the issue for no agent_id:#. When I run the conversation.process to get the id it just returns conversation.openai.conversation. Also when I use the dev tool I can get the response, but I have no clue where to find that to send thru. I get either the timestamp as a message, agent, or the “Simon says” reply. Any help is appreciated
Далее
How My New Smart Home Dashboard is GENIUS
9:00
Просмотров 108 тыс.
UZmir & Mira - Qani qani (Snippet)
00:26
Просмотров 733 тыс.
ПООСТЕРЕГИСЬ🙊🙊🙊
00:39
Просмотров 5 млн
GPT4o: 11 STUNNING Use Cases and Full Breakdown
30:56
June Release | Home Assistant 2024.6
10:38
Просмотров 9 тыс.
You’re using ChatGPT wrong
9:31
Просмотров 321 тыс.
ChatGPT 4o vs Gemini 1.5 Pro - A Huge Gap!!
9:56
Просмотров 332 тыс.
26 Incredible Use Cases for the New GPT-4o
21:58
Просмотров 620 тыс.
The BEST Dashboard I’ve EVER Seen! Smart Home Tour
13:06
this changed how I use AI...
30:58
Просмотров 238 тыс.
10 Powerful Shortcuts with ChatGPT-4o
16:48
Просмотров 98 тыс.
I should have tried this earlier - Bigscreen VR.
11:07
UZmir & Mira - Qani qani (Snippet)
00:26
Просмотров 733 тыс.