I have been using chat GPT to control my light colours for about a month now. It's too tedious to properly set the colours and temperatures of our lights manually and too complex to consider all factors like activity, weather, music, time of day and season. Chat GPT is now our personal lighting DJ, giving us dynamic and interesting light combinations that respect our circadian rhythm. Here's my prompt - the output of…
I don't get it. Do you not tell it the current primary and complementary hues? Seems like it gives you the same back. And in the reason it incorrectly says it adjusted the hue.
Using ChatGPT for home automation
91–100 of 117 posts
Re: Using ChatGPT for home automation
#92Re: Using ChatGPT for home automation
#93I have been using chat GPT to control my light colours for about a month now. It's too tedious to properly set the colours and temperatures of our lights manually and too complex to consider all factors like activity, weather, music, time of day and season. Chat GPT is now our personal lighting DJ, giving us dynamic and interesting light combinations that respect our circadian rhythm. Here's my prompt - the output of…
This is awesome. How do you feed this into home assistant?
1. Every hour a Node Red flow runs 2. It generates a prompt using a Home Assistant Jinja template 3. The prompt is sent to Open AI 4. The response gets parsed from JSON and sent to Home Assistant's "input_number" entities 5. Lights in Home assistant pick up the state change and set the new colours
If you're keen, I can share the Node Red flow diagram (or JSON).
Re: Using ChatGPT for home automation
#94I have been using chat GPT to control my light colours for about a month now. It's too tedious to properly set the colours and temperatures of our lights manually and too complex to consider all factors like activity, weather, music, time of day and season. Chat GPT is now our personal lighting DJ, giving us dynamic and interesting light combinations that respect our circadian rhythm. Here's my prompt - the output of…
Re: Using ChatGPT for home automation
#95Earlier quoted context omitted.
Yes, see my example above. I use Node Red to get chat GPT and Home Assistant talking to each other. No code required (unless you count the prompt template).
Hmm do you have a node red template? Never used it so confused how to set this up. Is it voice activated?
Here's an export and screenshot of the flow (these links will expire in 2 weeks):
I use a few custom "nodes" to make it easy to query and parse the response though:
* node-red-contrib-string
* node-red-contrib-custom-chatgpt
* node-red-contrib-home-assistant-websocket
On the Home Assistant side, you'll need to create some "Helpers" or "input_number" entities and an "input_text" entity for the reason.
Hopefully that helps you get up and running.
Re: Using ChatGPT for home automation
#96I have been using chat GPT to control my light colours for about a month now. It's too tedious to properly set the colours and temperatures of our lights manually and too complex to consider all factors like activity, weather, music, time of day and season. Chat GPT is now our personal lighting DJ, giving us dynamic and interesting light combinations that respect our circadian rhythm. Here's my prompt - the output of…
Could you elaborate more on the setup? Like if I were a technologically competent person, but unfamiliar with how to set up a system that keep GPT live, and then feeds that output into Home Assistant
https://news.ycombinator.com/item?id=36018291
The flow is pretty simple in Node Red - render the prompt from Home Assistant and pass it to Chat GPT. The response from Chat GPT is parsed and sent back to Home Assistant in some "Helper" variables known as "input_number" and "input_text".
Once the values are in Home Assistant, it's pretty easy to change the colours of lights in an automation.
Re: Using ChatGPT for home automation
#97I have been using chat GPT to control my light colours for about a month now. It's too tedious to properly set the colours and temperatures of our lights manually and too complex to consider all factors like activity, weather, music, time of day and season. Chat GPT is now our personal lighting DJ, giving us dynamic and interesting light combinations that respect our circadian rhythm. Here's my prompt - the output of…
This is super cool, I would love to implement something like this. Are you willing to post the node red yaml for it?
Happy to answer any questions if you hit a snag.
Re: Using ChatGPT for home automation
#98Earlier quoted context omitted.
> If I say "it's too chilly in here" in a house with only lights, it will turn them on as a way of "warming things up". is it bad that I'm on GPT's side on this, i mean if they are incandescent lights they are small electric heaters and what else do you expect it to do
Yeah but I think the idea is that it is a knob that calls to be turned. "It's warm in here" -> "I'll make the light blue so you feel nice and cool". "How fast do sparrows fly?" -> "Making the light brown". Like it might want to do _something_ and tweaking the hue or brightness are all it can do. Good reason to always try to include in a prompt a way-out, a do-nothing or I-don't-understand answer.
> Good reason to always try to include in a prompt a way-out, a do-nothing or I-don't-understand answer.
Do you have a good way of including such a provision?Re: Using ChatGPT for home automation
#99I'm not against idea of having LLM be smart assistant for home, but I do have problem with sending any of that to cloud. It's one thing to use it as convenient way to change anything remotely but linking home automation not only into constant internet connectivity but also "that one particular cloud thing that might disappear at any moment" (hello google) just seems like setting yourself for problems later. At least…
The whole system is a sort of IFTTT and quite powerful. Since every entity is exposed as a generic device with some capabilities, you can easily set up little automation routines or you can interact with the local API.
At this point pretty much all the "big" names are supported - I have a mix of Hue, Aqara, iRobot, IKEA and other devices and they mostly just connect. There's also support for unusual things like Octoprint and router status. And now there's also ESPHome so you can make your own sensor nodes.
The biggest challenge with offline voice control is latency between speech to text, inference and text to speech. Running offline is less of a problem and open source models will eventually get good enough, but the really impressive aspect of Alexa, Siri, etc is how fast they can respond to you.
Re: Using ChatGPT for home automation
#100From the beginning I was ridiculing AGI dommsdayers, but just one month later I am waitng for an article about "Isn't it a great idea to connect LLM to NORAD system?"
https://www.theatlantic.com/magazine/archive/2023/06/ai-warf...