Home Assistant

412 readers
1 users here now

Home Assistant is open source home automation that puts local control and privacy first. Powered by a worldwide community of tinkerers and DIY...

founded 2 years ago
MODERATORS
901
 
 
This is an automated archive made by the Lemmit Bot.

The original was posted on /r/homeassistant by /u/End3r89 on 2025-04-21 04:34:45+00:00.


TL;DR: I'm posting this just to help anyone else who has been in a similar position to me, specifically when it comes to aqara devices. I tried many different things, but in the end the only thing that worked for me to get a stable network was getting an Aqara M2 hub on top of my zigbee routers/coordinator and bring all the aqara devices in through there and the homekit integration. Now everything has been solid and responsive for (so far) a week and counting.

Initially I had a Sonoff ZBDongle-P as a coordinator and a handful of thirdreality zigbee outlets. The coordinator was in the basement, thats where my server running a HA VM is. I had zero issues at this point, so I decided to add some door and window sensors and a few temperature sensors, did some research and figured the ones from aqara were the best to get with long battery life and decent reliability. I added a few around the house but immediately noticed that there were connection issues. By this point I had the third reality zigbee switches in lots of rooms throughout the house for nightlights and various other things (mostly to create a robust zigbee network since they are all routers themselves) but I was still having issues with the aqara devices constantly becoming unresponsive within hours of reconnecting and was starting to get frustrated.

I did some more research and figured the best thing to do was get my coordinator in the middle of the house, but couldn't do that with the existing coordinator. (At this point I've got a few more zigbee switches from companies like Leviton, Sonoff, and others, which are all fine, zero issues. Just still having issues with the aqara devices). I ended up getting the SLZB-06P7 POE coordinator based on reviews and for a while this seemed to help a lot, I was getting much more stable connections with the aqara devices. At this point I 25 other zigbee devices (most of them mains powered routers) in the network and 8 aqara devices. Once I had better, stable connection with them I figured I had solved the problem with the new coordinator, so decided to go all in and get a door/window sensor for all the windows and doors in the house and a few more temperature monitors so I could do two things: have an automation to turn on the bathroom fans when the humidity in the bathroom went above 50%, and prevent the AC from being turned on when there are windows open in the house.

Something unfortunately broke when I got above ~15-20 aqara devices. All of a sudden they started dropping out again on a regular basis. Now I took a deep dive into zigbee stability research and started doing all sorts of things... I have 3 unifi APs, one on each floor, and I set up 2 day tests with the APs running on different wifi channels, this never seemed to have any effect no matter what channels I set the APs to. I also changed my zigbee network channel, literally going from 1 all the way to 25 (I got seriously used to connecting all the devices literally hundreds of times for the 50 devices I had by now) and did end up having differing levels of success. Channel 25 ended up being the most reliable, but still had around 12 aqara sensors in various places around the house that just would absolutely not stay connected. I also tried ZHA with no more success than Zigbee2mqtt.

I ended up buying two more POE coordinators (SLZB-06 and SLZB-06M) to put as routers in various places around the house, but no matter where I put them it had zero effect on the aqara devices. Even when trying to pair the bad devices directly to a router that was strung on a long POE cable to be close to it for a test, the device would not remain connected to the network after a short period of time. This ended up being a waste of money completely...

On a side note for the POE SLZB-06P7 coordinator I noticed something very frustrating when I had power outage in the house. If there was a power blip the coordinator would sort of get lost and the ONLY way to reconnect it would be to physically unplug it and plug it into a different port in the POE switch. It's a unifi POE switch so you are able to remotely do a power cycle on the POE port, but this did nothing. If I was away during a power outage I would lose my zigbee network completely until I got back to the house to unplug the coordinator and plug it into a different port. EXTREMELY frustrating to figure this out... The only solution I had for this was to switch back to using my sonoff ZBDongle-P as the coordinator and just using all the POE ones set to router mode. The Sonoff zigbee coordinator is plugged into my server which is on a power bank so it doesn't lose power during a power blip.

Back to aqara devices sucking balls... The solution I eventually found when I was desperate was to just buy an aqara M2 hub and bring it in with a homekit integration. I watched this video to do it (). It's definitely less user friendly than bringing the device in directly with your own zigbee coordinator, but I've had zero issues with any aqara device ever since. The temperatures updating often, and I get door and window alerts within seconds of them opening now. It's been solid for about two weeks which was unimaginable a month ago.

I hope this is all done now, I've recreated my zigbee network so many times now that I think if something like this ever happens again i'm just about ready to burn the house down with me in it. Ok fine I won't do that but I might just throw everything aqara in a pile and burn it while dancing around naked and wasted. or something. Hopefully my trials and tribulations can help someone...

902
 
 
This is an automated archive made by the Lemmit Bot.

The original was posted on /r/homeassistant by /u/walrustoothbrush on 2025-04-21 00:48:15+00:00.

903
 
 
This is an automated archive made by the Lemmit Bot.

The original was posted on /r/homeassistant by /u/RB20AE on 2025-04-20 21:49:17+00:00.


This is going to sound really pants to some of you who are well experianced in HA but im quite happy with myself!

I have been toying with Ha for a month or so. Added the basics like my boiler, google homes, a few this party sensors, my Car etc.

I have worked on for the last few days trying to get my Google home to report back the pollen levels for me ( I get really bad hayfever!) and tonight I finally got it working Via a script and automation in the google home app!

I will admit i have used ChatGPT to help me but I can still be proud right? Also my wife rolled her eyes when I told her 🤣

I can share my Ymal if anyone wants to see it?

904
 
 
This is an automated archive made by the Lemmit Bot.

The original was posted on /r/homeassistant by /u/flurinegger on 2025-04-20 10:55:59+00:00.

905
 
 
This is an automated archive made by the Lemmit Bot.

The original was posted on /r/homeassistant by /u/BenGmuN on 2025-04-20 18:02:48+00:00.

906
 
 
This is an automated archive made by the Lemmit Bot.

The original was posted on /r/homeassistant by /u/Home_Assistantt on 2025-04-20 13:57:17+00:00.


Ive been using HA for a good 4-5 years now and thought I managed to find my way around most things...but something had bugged me for ages...but Ive finally worked it out.

I have a number of dumb switches made smart with relays behind those switches that turn smart lights on/off but with the actual switch itself is detached so the power isn't cut to the smart bulbs and the input boolean being the one to control the lights, mainly via Node-Red but it also works via HA native automations.

So all of these lights work fine but of course I had issues when I wanted to launch said light from a dashboard...as I was controlling these entitiies directly, they never hit the automations as I was controlling the entities themselves rather than the binary sensor that was toggling the switches on/off setting....and this element cannot be affected directly in home assistant.

Then last week it finally clicked, set a toggle helper and have toggle of this element toggle the relevant automation in addition to the binary sensor of the relay. This alone means you now turn the light on or off and it is set by the same rules that apply when the switch itself is used, but then it mean the swtich icon state you use no longer shows correctly if the light is on or off and can get out of sync if you turn it off on the wall but on on the dashboard...but that can be sorted as well using a custom button card.

Here is my yaml for that below

type: custom:button-card

entity: light.studyceilinglight

state:

  • value: "on"

color: white

  • value: "off"

color: null

tap_action:

action: toggle

entity: input_boolean.studylightib

name: Study Light

icon: phu:ceiling-round

show_state: false

show_name: false

aspect_ratio: 1

Again, this isnt a ground-breaking thing by any means but it's ticked a box for me so I hope it might help some others

907
 
 
This is an automated archive made by the Lemmit Bot.

The original was posted on /r/homeassistant by /u/will3675 on 2025-04-20 13:12:49+00:00.

908
 
 
This is an automated archive made by the Lemmit Bot.

The original was posted on /r/homeassistant by /u/Luckyluck0011 on 2025-04-20 06:40:40+00:00.

909
 
 
This is an automated archive made by the Lemmit Bot.

The original was posted on /r/homeassistant by /u/Han-Yolo44 on 2025-04-20 06:15:44+00:00.

910
 
 
This is an automated archive made by the Lemmit Bot.

The original was posted on /r/homeassistant by /u/crcerror on 2025-04-20 05:06:39+00:00.


So I bought a vibration sensor with grand dreams of being notified the moment my dryer has finished its majestic cycle. Sadly, it turns out my dryer is about as emotionally expressive as a brick...barely any vibration, and now I’m left holding a lonely, unemployed sensor. Instead of tossing it in the junk drawer of shame, I figured I’d turn to you brilliant folks.

What’s the weirdest, most creative, or surprisingly useful way you’ve used a vibration sensor in your setup?

Bonus points if it involves pets, revenge, or something my spouse will side-eye but secretly appreciate. Hit me with your best ideas! Save my sensor! TIA

[Edit] The dryer sensing issue has been solved with a smart plug, all good there. Just don't know what to do with my Aqara vibration sensor.

911
 
 
This is an automated archive made by the Lemmit Bot.

The original was posted on /r/homeassistant by /u/Luci_is_back on 2025-04-20 03:48:52+00:00.

912
 
 
This is an automated archive made by the Lemmit Bot.

The original was posted on /r/homeassistant by /u/iApexxx on 2025-04-19 12:40:08+00:00.


Hey everyone!

I'm a really forgetful person, and honestly I've been having trouble remembering to log my hours at work. A "brilliant" home automation idea came to my mind, and I've decided to learn how to build a custom integration, and well, write about it.

Any feedback is appreciated, and I've also linked the repositories at the end of the post, the Clockify integration is not so useful, while the DeepSeek one I'm sure you can fit somewhere into your smart home :).

913
 
 
This is an automated archive made by the Lemmit Bot.

The original was posted on /r/homeassistant by /u/imwjd on 2025-04-20 01:56:47+00:00.

914
 
 
This is an automated archive made by the Lemmit Bot.

The original was posted on /r/homeassistant by /u/o2pb on 2025-04-20 01:29:40+00:00.


I've had this automation running for about a month, and its hilarious. Amuses every visitor I get, and knocks down my ego a few pegs every time I come home. You can of course adjust the "spice level" of the responses by tweaking the instructions prompts.

Prerequisites:

  • Camera
  • Motion sensor or more advanced person detection sensor
  • A speaker
  • Door opened sensor
  • OpenAI and/or Google Gemini API token (I found Gemini better, but its heavy rate limited so I use both). You can also use a local model.
  • LLM vision plugin
  • Quality TTS platform with natural sounding voices (I use ElevenLabs) as this works a lot better when the AI doesn't sound like a robot

What happens:

  1. Person or motion is detected on the cameras for a few seconds
  2. Camera stills are analyze using an LLM and a non-politically correct description is played over the PA speaker inside the house as an FYI of who's outside/coming
  3. If the person comes inside (door opens) they get a personal roast based on their description from the previous LLM call.

Here is the script

alias: Person Detection - Front

description: ""

triggers:

  • trigger: state

entity_id:

  • binary_sensor.driveway_person_detected

to: "on"

for:

hours: 0

minutes: 0

seconds: 3

  • trigger: state

entity_id:

  • binary_sensor.porch_motion_sensor_motion_detection

to: "on"

for:

hours: 0

minutes: 0

seconds: 2

conditions: []

actions:

  • type: turn_on

device_id: 53b3ef12acc92505d47e0f628ab40031

entity_id: ea7f14f1cedc0194bd7bcf97923f08b7

domain: light

brightness_pct: 100

  • action: llmvision.image_analyzer

metadata: {}

data:

remember: true

use_memory: false

include_filename: false

target_width: 1280

max_tokens: 100

temperature: 0.8

generate_title: true

expose_images: true

provider: 01JQM2QBVXMZAGNZ3SMW63A8YB

image_entity:

  • camera.driveway_medium_resolution_channel

  • camera.front_door_medium_resolution_channel

message: >-

About You

You perform detailed security camera image analysis at almost a forensic

level. You will be shown one or more still frames from multiple security

cameras facing the driveway of a house.

Analysis Instructions

If you see a person or a new car (especially on the road) in the frame,

describe the person or car in a single sentence, use crass humor. Here

is an example: "At the front of the house there is a white delivery

truck (the kind kidnappers use) and another pedo looking (you know the type) person

wearing a tasteless orange vest carrying a large purple box". This is

just an example, be creative, and brief.

Don't describe what the individual camera is showing, only the complete

scene where a visitor is coming by the house. Don't say first image, 2nd

image, analyze both as a single thing. Don't focus on the surroundings,

focus on one or two specific details about the person from the image,

and be brief. People can be detected on the edges of the images, so look

carefully. Avoid saying "rolled out of bed" or "looks like he owns the

place" as you seem to say that a lot, be very specific and creative in

your description.

If you don't see people or new cars, say something like "Something is

happening out front, but I'm not sure what exactly" (feel free to

rephrase, just keep it short).

Things to ignore

There are usually 2 Teslas parked in the bottom of the frame, so don't

mention those unless one is missing. There may also be a white truck or

car in the top left corner of the frame, these are neighbor’s cars and

this is normal.

model: gpt-4o

response_variable: person_description

  • action: media_player.volume_set

metadata: {}

data:

volume_level: 0.7

target:

entity_id:

  • media_player.voice_box

  • action: tts.speak

metadata: {}

data:

cache: true

media_player_entity_id: media_player.voice_box

message: "{{ person_description.response_text }}"

target:

entity_id: tts.elevenlabs

  • wait_for_trigger:

  • trigger: state

entity_id:

  • binary_sensor.qolsys_panel_front_door

to: "on"

for:

hours: 0

minutes: 0

seconds: 3

timeout:

hours: 0

minutes: 3

seconds: 0

milliseconds: 0

continue_on_timeout: false

  • action: google_generative_ai_conversation.generate_content

metadata: {}

data:

prompt: >-

There is a person(s) entering the front door of a house, say a very

personalized greeting that will play over the PA system to this person

right after they enter. Do a short (2-3 sentences max), not politically

correct and funny roast (you can use profanity, as its all in good fun)

based on the description of the person and event. Dont say anything else

except the short roast directed at them, and be random as this prompt

will be used many times. Be sure to focus on the specifics of the

persons description, and always mention them all in your roast. Then

welcome them into the house and suggest a task or activity they can do.

Be creative and controversial.

The camera detected the following event:

{{person_description.response_text}}

response_variable: visitor_roast

  • action: tts.speak

metadata: {}

data:

cache: false

media_player_entity_id: media_player.voice_box

message: "{{visitor_roast.text}}"

target:

entity_id: tts.elevenlabs

  • if:

  • condition: sun

before: sunset

after: sunrise

then:

  • action: light.turn_off

metadata: {}

data: {}

target:

device_id: 53b3ef12acc92505d47e0f628ab40031

mode: single

I just added a similar style pipeline for the outside speaker where you get a kinder/less crass commentary and questions about why you are there, when someone is standing at the door. Together these work quite well as you get some playful banter outside, and some brutal commentary when you walk in.

This might get annoying real fast, but so far I love it. Gemini's roasts are far better than GPT4o, can't wait to try this with Grok3 in unhinged mode.

915
 
 
This is an automated archive made by the Lemmit Bot.

The original was posted on /r/homeassistant by /u/WonderfulCloud9935 on 2025-04-19 23:41:30+00:00.

916
 
 
This is an automated archive made by the Lemmit Bot.

The original was posted on /r/homeassistant by /u/ForsakenConversation on 2025-04-19 22:23:04+00:00.

917
 
 
This is an automated archive made by the Lemmit Bot.

The original was posted on /r/homeassistant by /u/ApolloAutomation on 2025-04-19 16:33:35+00:00.

918
 
 
This is an automated archive made by the Lemmit Bot.

The original was posted on /r/homeassistant by /u/stray_r on 2025-04-19 12:00:30+00:00.

919
 
 
This is an automated archive made by the Lemmit Bot.

The original was posted on /r/homeassistant by /u/coiarm on 2025-04-19 09:29:33+00:00.

920
 
 
This is an automated archive made by the Lemmit Bot.

The original was posted on /r/homeassistant by /u/Robochan on 2025-04-18 20:11:43+00:00.


Something took my raspberry pi down and now I have to turn all my basement lights on manually, Siri won’t adjust my nest thermostat, my Lutron pico remotes won’t control my outlets and my curtains won’t open at dawn. This is kinda rough to be honest. Is there a way to setup a backup failover host?

921
 
 
This is an automated archive made by the Lemmit Bot.

The original was posted on /r/homeassistant by /u/Dmgsecurity on 2025-04-19 05:17:08+00:00.

922
 
 
This is an automated archive made by the Lemmit Bot.

The original was posted on /r/homeassistant by /u/Curious_Mongoose_228 on 2025-04-18 22:13:37+00:00.

Original Title: Say entirely hypothetically somebody forwarded a port from their router and had it protected only by a HA account with a strong password while exposed to the internet. How quickly would their home burn down?


Seriously though, it seems everybody uses Nabu Casa or Tailscale etc. or some other VPN/tunneling scenario. Is the only risk in the described scenario a brute force password attack? Wouldn’t that be apparent from the login attempts? What is the risk I’m not accounting for in doing this? Hypothetically, I mean.

923
 
 
This is an automated archive made by the Lemmit Bot.

The original was posted on /r/homeassistant by /u/Neflhiem on 2025-04-18 21:11:33+00:00.

924
 
 
This is an automated archive made by the Lemmit Bot.

The original was posted on /r/homeassistant by /u/Narrow_Quail_9190 on 2025-04-18 19:58:42+00:00.


I have been wanting to learn Home assistant and ESP home for a long time and decided to fix this annoying issue as my first project!

I used 2 ESP32s, a 0-10V proportional ball valve and an NTC temp probe. I wanted to measure the outside ground temp to decide when to turn on the ball valve just enough to trickle the water before the ground gets to freezing temperature. Easier ways to do it but I learned a lot more doing it this way!

I made a big dumb video about it too if you're into that kind of thing:

925
 
 
This is an automated archive made by the Lemmit Bot.

The original was posted on /r/homeassistant by /u/Equivalent_Map8474 on 2025-04-18 19:38:17+00:00.


I guess you would like to get notifications on your phone when something happens. Are you constantly connected to your home VPN?

view more: ‹ prev next ›