Home Assistant

412 readers
4 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
151
 
 
This is an automated archive made by the Lemmit Bot.

The original was posted on /r/homeassistant by /u/war4peace79 on 2025-07-23 07:13:28+00:00.


Have you heard about our networking Lord and Savior, the mighty SNMP? :)

Most networking devices have a SNMP implementation. Some devices are obviously better than others, in that regard, but those who are worth their hide offer a wealth of information through this nice protocol.

Unfortunately, at the same time, the SNMP implementation is poorly documented for many devices, and getting relevant data out of them was usually a PITA. The fact that Home Assistant's SNMP integration is YAML-only adds to the setup complexity.. until now.

Enter LLMs, which, if used properly, can shorten configuration time by at least one order of magnitude.

General steps for SNMP integration into Home Assistant:

  1. Configure your devices to enable their SNMP. This step depends on each device, and there is no common ground between them. Some only support SNMP v1, others support v1 and v2, and others also support v3. I recommend using SNMP v3 wherever possible. The HA integration supports all versions.
  2. Use snmpwalk to parse and extract SNMP trees from each device, export the data into a CSV file, one file per device.

An example of snmpwalk command from a Windows machine, which exports SNMP data from an Ubiquiti USW-Aggregation device:

V:\Apps\snmp>SnmpWalk.exe -r:192.168.2.4 -v:3 -sn:username -ap:SHA -aw:password1 -pp:AES128 -pw:password2 -csv > USW-AGGREGATION.csv

  1. For each device, go to their web address and copy relevant data (data that you are interested in) from there, place it in a TXT or CSV file, one per device, this helps the LLM zero in to the correct SNMP codes for the data you are interested in. This step is not mandatory, but saves time in the long run. Don't worry about the data mismatching a little, compared to the SNMP exported CSV, any major LLM will be able to perform a fuzzy matching.
  2. Open the LLM solution of your choice; I used Google Gemini Pro 2.5 because it has a maximum token count of 1M, which ensures even large CSV files are completely parsed with room to spare. OpenAI free might struggle with this, though. Upload the CSV file and ask the LLM to generate a Home Assistant configuration for you.

Now, this is an important part: Describe the request as detailed and clearly as possible, with examples (this is where step 3 comes in). Here's how I asked Gemini (sorry, wall of text, but it is helpful if you want to use this route):

I have a Home Assistant server and two Ubiquiti Access Points. 
The first Access point is the UniFi UAP-AC-Pro and the second Access Point is the UniFi U6-LR.

The local IP for the UAP-AC-Pro is 192.168.2.21
The local IP for the U6-LR is 192.168.2.22

I have configured snmp access for each of those Access Points and used snmpwalk to obtain CSV files with snmp data from each Access Point. I have attached the relevant CSV files for both Access Points.

Create sensors for each access point, using this data for each sensor:

Sensor format example for the UAP AC Pro:
  - { platform: snmp, host: 192.168.2.21, username: username, auth_protocol: hmac-sha, auth_key: password, priv_protocol: aes-cfb-128, priv_key: password, scan_interval: 120, name: UAP AC Pro (relevant sensor name), unique_id: uap_ac_pro_relevant_sensor_name, baseoid: "(relevant_oid)" }

Sensor format example for the U6 LR:
  - { platform: snmp, host: 192.168.2.22, username: username, auth_protocol: hmac-sha, auth_key: password, priv_protocol: aes-cfb-128, priv_key: password, scan_interval: 120, name: U6 LR (relevant sensor name), unique_id: u6_lr_relevant_sensor_name, baseoid: "(relevant_oid)" }

Sensors I am interested in, for each Access Point:

1. Device Name
2. Device Uptime
3. Device Temperature (if it exists)
4. Channel Usage
5. Client Count (Clients and Guests)
6. Wi-Fi Experience Index for 2.4 GHz and 5 GHz
7. Memory Usage
8. Load Average
9. Uplink Speed
10. Activity (represented by throughput in Kbps)
11. Air Stats (for 2.4 and 5 GHz)
12. WLAN Channel and Width

Example data from the device page in UniFi Controller, for UAP-AC-Pro:

- General section:
MAC Address: [mac_address]
WiFi Experience (2.4 GHz): 98%
WiFi Experience (5 GHz): 99%
Uptime: 147d 22h 8m 18s
Memory Usage: 43.2%
Load Average: 0.24 / 0.13 / 0.10
Clients: 16
Guests: 0

- Uplink section:
Uplink: -
Speed: GbE
Power: 0 W
Down Pkts / Bytes: 2,384,703,262 / 2.64 GB
Up Pkts / Bytes: 717,280,099 / 626 MB
Activity: 55.7 Kbps

- Air Stats 2.4 GHz: 
Channel: 8(10,-1) HT40
Tx Pkts/Bytes: 301,870,011 / 95.8 GB
Rx Pkts/Bytes: 150,921,390 / 18.4 GB
Tx Retry/Dropped: 23.5% / 17.5%
Rx Retry/Dropped: 0.0% / 0.1%
Ch. Util. (Busy/Rx/Tx): 5% / 0% / 4%
Clients: 9
Guests: 0
- Air Stats 5 GHz: 
Channel: 42(36,+1) VHT80
Tx Pkts/Bytes: 2,000,371,356 / 2.63 TB
Rx Pkts/Bytes: 512,852,920 / 148 GB
Tx Retry/Dropped: 6.3% / 0.0%
Rx Retry/Dropped: 0.0% / 0.2%
Ch. Util. (Busy/Rx/Tx): 2% / 0% / 1%
Clients: 7
Guests: 0

Similar structure for the U6-LR Access Point.

Now, this specific chat used up close to 195K tokens, and AFAIK ChatGPT Free maxes out at 128K tokens. You can go around it by using one conversation per device, provided the exported SNMP tree is not humongous.

You might also want to tell the LLM which custom cards you use in your HA installation and whether you have HACS installed. You can also tell it to be a Home Assistant expert and how to generate its answer, I am not going to go too in-depth with this because this post is already way too long.

Below, a couple screenshots of the result, in Home Assistant. The backgrounds were generated using Google Gemini Pro 2.5 as well.

If you have any questions, I would be more than happy to respond, to the best of my abilities. I hope this will be useful to someone :)

Wired devices dashboard page

Wireless devices dashboard page

Current sensor count

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

The original was posted on /r/homeassistant by /u/dblue_one on 2025-07-23 04:25:04+00:00.

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

The original was posted on /r/homeassistant by /u/fuzz-on-tech on 2025-07-23 01:11:10+00:00.

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

The original was posted on /r/homeassistant by /u/-ToxicRisk- on 2025-07-22 18:23:57+00:00.


Hi everyone, I’m starting from scratch to build a smart home with HA.

My priorities are:

  • Reliability/Stability : no random disconnects, works long-term
  • Security : strong encryption, low risk of hacking

Thread/Matter, Zigbee, Z-Wave it’s hard to know which ones are actually solid in real life.

Thanks

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

The original was posted on /r/homeassistant by /u/RemoteSojourner on 2025-07-22 21:03:35+00:00.

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

The original was posted on /r/homeassistant by /u/missyquarry on 2025-07-22 20:44:38+00:00.

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

The original was posted on /r/homeassistant by /u/criterion67 on 2025-07-22 12:54:30+00:00.

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

The original was posted on /r/homeassistant by /u/BrownBeard666 on 2025-07-22 07:16:46+00:00.

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

The original was posted on /r/homeassistant by /u/Unlikely-Tax-2700 on 2025-07-22 09:56:06+00:00.

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

The original was posted on /r/homeassistant by /u/jklo5020 on 2025-07-22 06:37:29+00:00.


Hi everyone!

I‘m new to Home Assistant after buying HA Green secondhand and wow…. I‘m a longtime HomeKit user and was dreading moving my setup to Home Assistant, but it was way easier than I thought.

Reset all of my Shelly relays back to stock firmware and they were pretty much auto discovered and added!

I was nervous about adding my Thread-based accessories via Matter but that couldn’t have been easier. Putting them into pairing mode and pasting the code from HomeKit and they were added instantly.

Looking forward to moving my automations with nested if/then shenanigans from HomeKit in the next couple of days!

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

The original was posted on /r/homeassistant by /u/BPEWC on 2025-07-22 04:44:41+00:00.


My spouse finally had her HA aha moment today. She usually just rolls her eyes when I talk about the cool stuff HA can do. However, the other day, she was complaining that our kids never fully close the front and back doors. I got some cheap Aqara contact sensors and created an integration to send a voice message through our Alexa devices to announce that the door is open (after 30 seconds of being open). She loved it and said "ok, that is pretty cool."

What were rhe "aha" moments that finally won over your family?

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

The original was posted on /r/homeassistant by /u/Niftyrider on 2025-07-22 07:09:42+00:00.

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

The original was posted on /r/homeassistant by /u/hockpunk426 on 2025-07-22 00:15:00+00:00.

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

The original was posted on /r/homeassistant by /u/-ThatGingerKid- on 2025-07-21 19:50:13+00:00.

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

The original was posted on /r/homeassistant by /u/SummerWhiteyFisk on 2025-07-21 18:49:49+00:00.


https://preview.redd.it/zh6k6ipgu9ef1.png?width=1608&format=png&auto=webp&s=9bafac0d21693dfc31b1d965f72f985cd27ce1e7

3 weeks ago I purchased one of these for my laundry room, mainly for the motion sensor and needed another zigbee repeater. I now own 6 and they are freaking awesome for using with automations. I've wanted to integrate lights into automation reminders but am very anti using RGB for something big like a lamp or overhead light. I have these all around the house now which not only strengthen my zigbee network but I have integrated the following automations to run to serve as reminders:

(Have a simple button at my washer/dryer) - hit it once and it turns all of the nigtlights red for one hour (load duration) and then flips to green when the hour is up indicating that I need to rotate or take out the laundry. Double tap the button to turn all of the night lights off, or effectively "resetting" them

Yellow Lights turn on when the front door has been unlocked for > 30 min

Orange light comes on when my home server loses power (has all my shows and movies on it and is a pain to reset when I'm already laying in bed)

Blue Light comes on when a package is detected outside

Have 4 hue dials around the house, hitting the fourth button 3x's on any of them can also reset the lights so I don't always have to keep going to the laundry room whenever I want to turn one off.

These are just for starters and am looking to add more. Can very easily be triggered and are a great, passive reminder that doesn't turn your house into a lazer tag arena. Anyone have any suggestions to add?

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

The original was posted on /r/homeassistant by /u/Niftyrider on 2025-07-21 17:42:50+00:00.

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

The original was posted on /r/homeassistant by /u/greb1234 on 2025-07-21 13:12:52+00:00.

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

The original was posted on /r/homeassistant by /u/Novajesus on 2025-07-21 10:42:47+00:00.

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

The original was posted on /r/homeassistant by /u/hometechgeek on 2025-07-21 09:18:02+00:00.

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

The original was posted on /r/homeassistant by /u/sir3lly on 2025-07-20 21:48:00+00:00.


Finally installed HAOS in a docker on truenas scale. It was touch and go for a bit but it’s finally up and running don’t have much but feel accomplished

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

The original was posted on /r/homeassistant by /u/luca910 on 2025-07-21 07:18:39+00:00.

Original Title: :)

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

The original was posted on /r/homeassistant by /u/Capyvara on 2025-07-20 22:20:04+00:00.

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

The original was posted on /r/homeassistant by /u/Rude_End_3078 on 2025-07-20 19:14:52+00:00.


So far (and touch wood) everything that I've needed or wanted to automate has some existing solution that doesn't require extremely advanced approaches.

Now that's not to say everything I've done (or plan on doing) has a prebuilt solution. For example the water tank levels for my garden didn't have anything prebuilt that I could just slot in, so I had to order the sensor on Ali and then roll my own solution around that involving a Shelly Uni. And the thing is for that purpose the Shelly Uni is enough.

And it's roughly the same story for the inline temp reader in my pool. You know getting the temperature from "the pipe" and AC hardwired in. Same story had to order a temp sensor and DIYed a solution, but still that one used yet again a Shelly Uni.

Roughly the same thing with my garage door openers and sensors (magnetic reed switches) - those ones are even easier using a Shelly 1 Gen 4.

I'm a bit intimidated by the ESP32, but they are geared for IoT's so did any of you guys use them in your setup?

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

The original was posted on /r/homeassistant by /u/terryleewhite on 2025-07-20 14:02:43+00:00.


Is there a way to get HA to update my AWAY status faster. I can go for several miles and it will still show me as HOME. It always eventually updates, but is there a way to make this happen faster or on demand? I have automations that trigger when I’m AWAY.

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

The original was posted on /r/homeassistant by /u/Apps-are-cool on 2025-07-20 17:21:33+00:00.

view more: ‹ prev next ›