Watch how Claude AI builds and improves Home Assistant automations, saving time and enhancing smart home functionality.
Key Takeaways
- AI can effectively build useful Home Assistant automations with natural language prompts.
- Multiple iterations may be needed to refine automations and fix issues.
- Careful management of AI access and reviewing changes is essential for security and reliability.
- AI is especially valuable for repetitive or complex automation tasks that are time-consuming to do manually.
- Backup and cautious use of AI tools help prevent potential problems.
What the video covers
- The creator tests Claude AI to build postponed Home Assistant automations using natural language prompts.
- Claude is connected to Home Assistant via HACMP, allowing direct automation creation without manual YAML coding.
- First automation controls speaker volume to prevent it from being too loud, which works after prompt refinement.
- Second automation uses security cameras and Freegate to alert when the car leaves the driveway, but false alerts remain an issue.
- Third automation monitors solar system performance and battery status, sending notifications and warnings as configured.
- Claude sometimes needs multiple prompts to fix issues and improve automation functionality.
- AI can simplify repetitive or time-consuming Home Assistant tasks but requires careful review and access control.
- The video encourages interaction by asking viewers to share their coolest AI-built automations.
- The creator emphasizes backing up configurations before allowing AI to make changes.
- AI is a helpful assistant but not perfect on the first try, requiring iterative communication.
Chapters
- 00:00Introduction and Goals
- 00:27Testing Claude for Automation Creation
- 00:47Using Natural Language Prompts
- 01:14Volume Control Automation
- 02:19Refining Volume Automation
- 02:21Testing Volume Automation
- 02:56Security Automation with Freegate
- 03:37Issues with Security Automation
- 03:59Solar System Monitoring Automation
- 04:26Testing Solar and Battery Automations
Full Transcript — Download SRT & Markdown
Speaker A
Today, I'm letting Claude build some automations for my house. These are not random automations. They are things I need but I kept postponing because I never had the time to build them properly. So, today I want to answer two questions.
Speaker A
Can AI actually build all automations for me? And more importantly, will they be good enough that I actually keep using them? Here's the problem. I have a list of automations I want in my house, but I have kept postponing them because
Speaker A
building and testing everything properly takes time. So, today I'm going to see whether Claude can help me finally get them done.
Speaker A
Claude is connected directly to Home Assistant through HACMP. It can see my devices, understand how my system is set up, and create automation itself. I'm not writing any YAML. I will simply explain what I want in normal language,
Speaker A
the same way most people would describe it. Now, I'm not expecting every first prompt to be perfect. If Claude misunderstands something, I will explain what went wrong, adjust the prompt, and let it improve the automations. Because the purpose of the video is not to see
Speaker A
whether AI gets everything right on the first attempt. It is to show you how you can use it to build useful automations yourself. So, this is the first automation I thought of. My son Ryan always turns on the music too loud.
Speaker A
[music] [singing] So, maybe Home Assistant can help me with that. I will give this prompt to Claude. Somebody in my house always puts the music way too loud. If the Sonos or the TV volume goes over a certain level,
Speaker A
bring it back down to normal by itself. Claude has started working on my automation. Let's see what it does.
Speaker A
He finished, but I guess I wasn't clear enough. Instead of creating the automation himself, he gave me a YAML file to paste into Home Assistant.
Speaker A
That's not what I want. So, I'll clarify the prompt and I ask him to create it directly.
Speaker A
Now, he's building the automation himself. So, let's check whether it works. [music] Seems to be okay. The trigger is when my speakers or the TV are above 0.6 for 3 seconds, then perform [music] the action set media player volume, and it used a
Speaker A
template to put it at normal level. Now, let's actually test it. Let's see if it works.
Speaker A
[music] [music] It seems to be working. Whenever Ryan turns up the volume, after 3 seconds, it gets back to normal. The second automation is about security. A while ago, someone came onto my property and checked whether my car was unlocked. So, I
Speaker A
wanted an extra layer of protection. I used to track the car with a Bluetooth device connected to a BLE proxy, but its battery died. And of course, I forgot to replace it. So, this time, I want to try a better solution using my security
Speaker A
cameras and Freegate. Let's see whether Claude can make this work. I'll give it this prompt. Create a Home Assistant automation using Freegate. If my car is detected leaving its usual parking area or driveway, immediately send an alert to my phone.
Speaker A
[music] The automation is finished, but there is one important detail in the way Claude built it. It added a 10-minute dwell time to avoid false triggers, which means I would only receive the notification 10 minutes after the car
Speaker A
leaves. Not exactly what I wanted. I reduced that delay to 2 minutes to test it, but I still receive false alerts. So, for now, I would call this automation only partially working.
Speaker A
Freegate Plus may improve the detection because it can use a better trained model, but I do not currently have the paid plan. I will test that in the future. With the free setup, the detection is not reliable enough for
Speaker A
this automation yet. The third automation is for my solar system. I've been completely off-grid for the past 4 months without using any power from the grid. So, I want a better way to keep track of how the system is performing
Speaker A
throughout the day. I want Home Assistant to send me regular updates showing my solar production, battery level, battery temperature, and the temperature inside the inverter room. I also want an immediate warning if the battery drops below 70%.
Speaker A
So, this is the prompt I'm going to give Claude. A few times each day, send me a notification with the current solar production, battery percentage, battery temperature, and inverter room temperature. Also, send me a warning if the battery level drops below 70%.
Speaker A
Claude has finished building the setup. It actually created two separate automations, one for monitoring the day inverter sensors, and another one for the battery. Everything looks good so far. So, let's test them and see how they work.
Speaker A
First, let's test the battery status automation. I'll trigger it manually and share my phone screen to see whether the notification comes through. And there it is. The notification appeared, so the automation works.
Speaker A
Next, I tested the solar statistics automation. I triggered it manually and temporarily changed the schedule time so it would run immediately, but no notification arrived. I asked Claude to investigate, and on its second attempt, it identified the problem and fixed it.
Speaker A
After testing these three automations, here are my final thoughts. AI is everywhere now, and I think almost everyone is already using it for work tasks or personal projects. So, why not use it to make Home Assistant easier as
Speaker A
well? As I said before, Home Assistant can sometimes feel like a second job. There is always something to configure, fix, improve, or automate. If you don't have enough time to constantly tinker with it, AI can definitely make your
Speaker A
life easier. But, you still need to use it carefully. Pay attention to what level of access you give it. Always review and confirm the changes it wants to make, and create a backup before you begin. Once the task is complete, I also
Speaker A
think it's a good idea to disable its access until you need it again. The purpose of this video was also to show that AI will not always get everything right from the first prompt. When something doesn't work, continue the
Speaker A
conversation, explain the problem, and ask it to investigate and find a fix. In many cases, it eventually will. I used relatively simple examples in this video, but even these required a few extra prompts before everything worked correctly. Very basic automations are
Speaker A
probably faster to create yourself, but AI becomes much more useful when the task is repetitive or time-consuming.
Speaker A
For example, you could ask it to create one automation that monitors every battery-powered device in your home and sends you a notification before the battery dies. If you have a lot of sensors and devices, setting that up manually could take quite a while. That
Speaker A
is exactly the kind of task where AI could save you a lot of time. That's it for today. I hope you enjoyed the video.
Speaker A
Let me know in the comments, what is the coolest automation AI has built for you?
Speaker A
And don't forget to like the video and subscribe. It really helps the channel grow. Thanks for watching, and I'll see you in the next one.
Speaker A
Walking slowly through the night, street lamps burning pale and white. At your door, we stole a kiss, cold air turning into bliss. [music] Then you smiled and slipped away.
Speaker A
[singing] Left a secret I found next day, a little note [music] inside my coat.
Speaker A
Just a number that you wrote. Five is heaven, ten you [music] said. Two small numbers somehow, man.
Speaker A
Maybe fate. [music]
Topics:Home AssistantClaude AISmart Home AutomationAI AutomationHACMPFreegateSolar MonitoringSecurity AutomationVoice CommandsAI Home Assistant






![RESIDENT EVIL 2 REMAKE [VOL. 3] — Transcript](https://i.ytimg.com/vi/0NkrSvFQVtg/maxresdefault.jpg)




