House Assistant is likely one of the strongest items of kit on the market for anybody who has smart-home electronics. It is also probably the most difficult. Many individuals are prepared to attempt it out for some time, after which will rapidly bounce off in favor of the simplicity of Google House or Alexa. Slightly than tapping a number of easy buttons, House Assistant is greatest utilized by those that are prepared to dive deep into their sensible house ecosystem and are prepared to study YAML or Jinja2.
Nonetheless, fairly than scouring discussion board boards searching for my subsequent sensible house addition, I’ve realized that Gemini is surprisingly able to making new House Assistant additions. So long as I clarify what I need and once I need it, HA and Gemini work hand in hand fairly properly.
Associated
Gemini isn’t as ineffective because it was once you tried it two years in the past
AI that I first despised is now my Google Assistant substitute.
YAML and Jinja2 are advanced
Gemini helped me get my stuff straightened out rapidly
Credit score: Shaun Cichacki/MUO
I spent a weekend turning an outdated Chromebook right into a House Assistant server. One which I might maintain working always, and I admittedly let it simply form of rot after that time. House Assistant is a fancy beast that I did not dedicate sufficient time to previously, however now that I’ve realized that Gemini can take my wildest concepts and make them work, I have been devoting a bit extra time to it. One of many issues that I have been eager to experiment with, for instance, is making it in order that so long as my cellphone is inside a particular vary of my router, the TV lights in my workplace will activate, after which flip off once I go away for an prolonged time frame.
By asking Gemini “Create me a YAML code that tells the TV lights to activate when my cellphone is inside 2 meters of the router, even when the TV is off,” I obtain YAML code that alerts to House Assistant once I’m throughout the vary, for a particular period of time, and the motion that it must take. For these with coding expertise, this might not be probably the most spectacular factor on the planet, however the pace and the way rapidly it really works astounds me. If I wish to refine this even additional, I might use one thing like an ESP32 Bluetooth proxy to get the very best outcomes total.
For individuals who are involved in seeing what Gemini spit out, right here is the precise YAML code it produced:
alias: “Activate TV Lights when Cellphone is Close to Router”
description: “Triggers TV lights when cellphone distance is lower than 2 meters”
mode: single
set off:
– platform: numeric_state
# Exchange this along with your precise cellphone’s distance entity ID
entity_id: sensor.shauns_phone_distance
under: 2
# The ‘for’ prevents the lights from flickering if the sign bounces
for:
seconds: 5
motion:
– motion: gentle.turn_on
# Exchange this with the precise entity ID of your TV lights
goal:
entity_id: gentle.tv_backlights
knowledge:
brightness_pct: 80
transition: 3
Advanced requests made easy
I’ve but to run right into a roadblock with even the strangest request
Once I say I wish to try to create bizarre requests, just like the aforementioned TV lights scenario, I would not have the slightest concept of the place to start out doing one thing like that. My creativity far outweighs my ability degree in relation to YAML, and that is the place Gemini has are available clutch for me as of late. Seeing as I am beginning to slowly migrate out of Google House and Alexa to see what House Assistant can actually do, I am additionally curious to try to push it to the restrict.
I’ve at all times heard that House Assistant can do much more advanced issues than Google House or Alexa, and after messing round with YAML, I can see why. Slightly than simply having generic triggers that may activate, I can implement wild requests. One thing like “when the solar goes down, and the toilet door sensor is closed, flip the lights within the hallway purple”, and it’ll pop one thing out.
If one thing fails, I can ask what it was
Slightly than guessing and ruining it, I can ask what went incorrect
Credit score: Shimul Sood / MakeUseOf
Studying a brand new factor, like coding or how you can work with YAML, is troublesome, and I give anybody who naturally is aware of how you can use it a ton of credit score. It is one thing that I might like to study extra about sooner or later, because it looks as if the issues you are able to do with House Assistant and YAML code are fairly astonishing. However proper now, I am nonetheless making an attempt to determine how you can get issues working correctly. If one thing fails when it initializes, I can ask Gemini what went incorrect, and it might assist me refine it and get it working.
All I’ve to do is paste the Hint, which is the step-by-step log that House Assistant offers when an automation triggers, into Gemini, and it might decide what occurred and why one thing did not set off correctly. It could possibly then give me a brand new automation to attempt rather than it, and it’ll maintain working till the whole lot is working as wanted.
AI would not have human smarts
Hallucinations and Model points could cause issues for brand new releases
Credit score: Amir Bohlooli / MUO
In case you’re hoping to maintain up with House Assistant, you may want to concentrate to new releases fastidiously. In case you’ve been utilizing House Assistant for some time, the 2024 change of changing “service” with “motion” could have brought on you sufficient of a headache. AI fashions can typically hallucinate and use these older phrases, inflicting issues to interrupt. You may want to make use of a human eye to make sure that you are not placing the incorrect issues in.
To be truthful, Gemini did not have any points with this. However different, older LLMs and AI fashions can encounter this problem. Whereas they’re doing the busy work, it is as much as the person to make sure that they’re getting the appropriate output from Gemini, Claude, or whichever mannequin you intend on making an attempt for one thing like this. With the June 2026 deadline proper across the nook, you could wish to run a few of your earlier automations by Gemini or one other mannequin to make sure that all of the “friendly_name” situations in your automations have been swapped over. Use the “Restore” tab to your benefit, and get to work.
OS
Android
Developer
Worth mannequin
Subscription
Now I simply want to start out upgrading extra stuff to Matter
In case you’ve been interested in House Assistant however scared to dive into the extra technical aspect of issues? This may very well be the proper center floor. I might see what Gemini was doing, and I might additionally research the YAML code that it outputs, so I might begin making an attempt to do issues like this for myself. It is the very best of each worlds, actually.
It is an effective way for me to get my ft moist when utilizing a program like this, and it is impressed me to take my House Assistant setup slightly extra significantly, now that I do know that I can get a few of my wilder concepts off the bottom. If creativity outweighs your YAML abilities, give this a attempt your self.

