Home Assistant

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

The original was posted on /r/homeassistant by /u/First-Dependent-450 on 2025-04-06 08:06:58+00:00.


Okay, so I did a small experiment at home recently. Mosquitoes have always been an issue, and we usually keep those liquid repellents plugged in 24x7. Realized the bottle was emptying every 5-6 days. Crazy inefficient, right?

So I bought a cheap ₹700 smart plug. Scheduled it to run exactly one hour at sunrise and sunset—basically peak mosquito time. Result?

  • Repellent now lasts almost 20 days instead of 5 days.
  • The house no longer smells like a chemical factory 24/7.

But here’s something interesting that happened: my parents, who usually aren't impressed by any "tech stuff," actually got curious about this setup. Mom asked me yesterday, "Beta, can this kind of thing also automatically switch off the geyser? We always forget and leave it on."

Funny how small tech experiments spark bigger family discussions.

Curious if others here have tried similar "unusual" automations at home? And did it lead to unexpected conversations or solutions?

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

The original was posted on /r/homeassistant by /u/sfortis on 2025-04-06 05:23:22+00:00.

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

The original was posted on /r/homeassistant by /u/oI-Io on 2025-04-06 01:14:04+00:00.

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

The original was posted on /r/homeassistant by /u/TrisolaranPrinceps- on 2025-04-05 23:47:50+00:00.

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

The original was posted on /r/homeassistant by /u/sportymcbasketball on 2025-04-05 20:27:48+00:00.

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

The original was posted on /r/homeassistant by /u/MisterGoodDeal on 2025-04-05 18:47:59+00:00.

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

The original was posted on /r/homeassistant by /u/Chiccocarone on 2025-04-05 18:23:25+00:00.


Currently my music setup consists of some snapclients all around my house which all have one source which is an instance of plexamp that I have virtualized but I was looking for something more and just tried music assistant while using it's built in Snapserver instead of my external one and the Plex integration and I'm blown away by how many features there are and how well they are integrated all together, this makes mass + snapcast feel and work like a proper multi room setup. I'm so excited to start use this more and it's gonna change how I listen to music. Also on a side note since I noticed that the Plex's integration has not a maintainer anymore I started to look at it to possibly fix some issues (like the player not showing in Plex) since for me Plex my only music source and I'm excited to improve this so that others can have an even better experience with it. Seriously of you haven't tried music assistant try it it's really good.

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

The original was posted on /r/homeassistant by /u/WatchNovis on 2025-04-05 15:21:58+00:00.

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

The original was posted on /r/homeassistant by /u/flyize on 2025-04-05 14:51:50+00:00.


I mean, assuming that exists. I really don't want to have a space heater with a 64 pin molex connector attached to it, if I don't have to.

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

The original was posted on /r/homeassistant by /u/techantics on 2025-04-05 14:14:00+00:00.

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

The original was posted on /r/homeassistant by /u/lbpz on 2025-04-05 11:07:50+00:00.

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

The original was posted on /r/homeassistant by /u/Jay_Skye on 2025-04-04 23:14:43+00:00.


[UPDATED CODE]

Below is the full tutorial to set up a back-and-forth chat with your LLM via actionable notifications, using the Ollama integration . First, you’ll create a script to start the conversation, then an automation to handle replies and showing how to include a conversation ID to maintain context.

Each time you run the “Start LLM Chat” script, a new conversation ID is created—resetting the context. This conversation ID is stored in the input_text helper and used by both the start script and the reply-handling automation.

Step 0: Create an Input Text Helper for the Conversation ID

  1. Navigate to Helpers: Go to Settings > Devices & Services > Helpers.
  2. Add a New Helper: Click + Add Helper and choose Text.
  3. Configure the Helper: • Name: Conversation ID • Entity ID: (It will be created as input_text.conversation_id)
  4. Save the Helper.

Step 1: Create the Script for Starting the Chat (with Dynamic Conversation ID)

This script does the following: • Dynamically generates a unique conversation ID using the current timestamp. • Stores the conversation ID in the input_text helper. • Starts the chat by calling the LLM service using that conversation ID. • Sends an actionable notification to your iPhone.

Path: Settings > Automations & Scenes > Scripts > + Add Script

Copy and paste the following YAML into the script editor:

alias: "Start LLM Chat" mode: single sequence:

Step 1: Generate and store a unique conversation ID.

  • service: inputtext.set_value data: entity_id: input_text.conversation_id value: "conversation{{ as_timestamp(now()) | int }}"

Step 2: Start the conversation using the generated conversation ID.

  • service: conversation.process data: agent_id: conversation.llama3_2_1b text: > Let's start a chat! What's on your mind today? Use emojis if you'd like! conversation_id: "{{ states('input_text.conversation_id') }}" response_variable: ai_response

Step 3: Send a notification to your iPhone with a reply action.

  • service: notify.mobile_app_iphone_16_pro data: message: "{{ ai_response.response.speech.plain.speech }}" data: actions:
  • action: "REPLY_CHAT_1" title: "Reply" behavior: textInput textInputButtonTitle: "Send" textInputPlaceholder: "Type your reply here..."
• Save the Script with a name like “Start LLM Chat.”

Step 2: Create the Automation for Handling Replies (Using the Stored Conversation ID)

This automation triggers when you reply to the notification. It: • Retrieves the conversation ID from the input_text helper. • Sends your reply to the LLM using the same conversation ID (maintaining context). • Sends a new notification with the LLM’s reply.

Path: Settings > Automations & Scenes > Automations > + Add Automation > Start with an empty automation > Edit in YAML

Copy and paste the following YAML into the automation editor:

alias: "Handle LLM Chat Reply" mode: single trigger:

  • platform: event event_type: mobile_app_notification_action event_data: action: "REPLY_CHAT_1" action:
  • service: conversation.process data: agent_id: conversation.llama3_2_1b text: "{{ trigger.event.data.reply_text }}" conversation_id: "{{ states('input_text.conversation_id') }}" response_variable: ai_reply
  • service: notify.mobile_app_iphone_16_pro data: message: "{{ ai_reply.response.speech.plain.speech }}" data: actions:
  • action: "REPLY_CHAT_1" title: "Reply" behavior: textInput textInputButtonTitle: "Send" textInputPlaceholder: "Type your reply here..."

• Save the Automation with a name like “Handle LLM Chat Reply.”

Step 3: Testing the Flow

  1. Trigger the Script: • Go to Settings > Automations & Scenes > Scripts. • Find “Start LLM Chat” and click Run. • A unique conversation ID is generated and stored (e.g., conversation_1678901234).
  2. Reply to the Notification: • A notification appears on your iPhone with a reply action. • Tap Reply, type your message, and hit Send.
  3. Observe the Conversation: • The automation picks up your reply, sends it to the LLM using the stored conversation ID, and sends the response back to your iPhone. • As long as you don’t run the start script again, the context is maintained via the same conversation ID.
  4. Resetting the Context: • Running the “Start LLM Chat” script again generates a new conversation ID, starting a fresh conversation context.

Path Summary • Create the Input Text Helper: • Settings > Devices & Services > Helpers > + Add Helper (choose Text) • Create the Script: • Settings > Automations & Scenes > Scripts > + Add Script • Create the Automation: • Settings > Automations & Scenes > Automations > + Add Automation > Start with an empty automation > Edit in YAML

This dynamic setup ensures that every time you start a new chat, a unique conversation ID is generated and stored, resetting the conversation context. Subsequent replies use this ID to maintain continuity.

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

The original was posted on /r/homeassistant by /u/syararsa on 2025-04-05 04:42:35+00:00.


Some days I swear my lights have a better social life than I do - constantly switching on and off like they’re at a rave. I just want to turn the living room lights on, but apparently, they prefer the dark. Honestly, at this point, my lights and I need couples therapy. Anyone else stuck in this endless loop of "nope, not today"? 😅

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

The original was posted on /r/homeassistant by /u/swake88 on 2025-04-05 03:12:03+00:00.

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

The original was posted on /r/homeassistant by /u/Beginning_Feeling371 on 2025-04-05 02:17:34+00:00.

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

The original was posted on /r/homeassistant by /u/Economy-Case-7285 on 2025-04-05 01:37:30+00:00.


Just published a quick blog post showing how I integrated the self hosted SpeedTest Tracker with Home Assistant to display download/upload speeds and ping on my dashboard—without relying on the the SpeedTest-net integration that can slow things down or cause memory issues.

I use a Raspberry Pi touchscreen at my desk to monitor homelab metrics. Now, when someone in the house yells "Is the internet down?!" I can glance over and instantly know if it's an ISP issue or something local.

Here’s what the post walks through:

  • Why I moved away from the Speedtest-net integration
  • Creating RESTful sensors in Home Assistant to pull results from Speed Test Tracker Docker container
  • Displaying everything with Mini Graph Cards (via HACS)

It’s been super helpful in spotting overnight ISP slowdowns.

Read the full write-up here: Speed Test Tracker in Home Assistant

Let me know if you have any questions or improvements—I’m always tweaking the setup!

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

The original was posted on /r/homeassistant by /u/DongleJungle on 2025-04-05 00:17:11+00:00.


I'm creating a series of beginner-friendly guides for new Home Assistant users. When I first started, there wasn’t much content available for first-time and first-year tinkerers. Today, while there are plenty of guides, many assume you’re comfortable with "advanced" skills like networking, linux administration, and soldering.

In my latest post, I break down the bare essentials for getting started with Home Assistant—without overspending or delving deeply into complex topics. I'm specifically aiming to avoid strongly opinionated fields like ZHA vs Z2M and making things easy.

Do you think this approach is helpful? Is there anything missing that you'd think would be useful? I appreciate any feedback!

Read the post about What's Needed to Start with Home Assistant.

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

The original was posted on /r/homeassistant by /u/dror88 on 2025-04-04 22:58:30+00:00.

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

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


I created the this custom laundry card for myself and wanted to share it. I hope everyone enjoys my ridiculous custom card.

Here's my Github link so you can recreate it for yourselves.

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

The original was posted on /r/homeassistant by /u/Due_Carpenter5909 on 2025-04-04 15:37:15+00:00.

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

The original was posted on /r/homeassistant by /u/fennecxx on 2025-04-04 15:36:37+00:00.


Hi, I’ve got a Shelly 3EM set up in Home Assistant. I created a Total Energy template sensor combining all three phases, and I'm using utility meter helpers for daily and monthly tracking.

Sometimes (like once a week, at night), HA record a huge spike (like 40-60 kWh/hour when my normal consumption is 10/day), even though:

  • The Shelly app and my energy provider app show normal usage, no spikes.

  • The Total Energy and Total Power sensors were totally normal in HA

  • The spike only appeared in the utility meter

I have no solar pannels, I only get electricity from the grid.

Seems like it miscalculated the delta during a restart or sensor glitch.

Any ideas what causes this issue and how to fix it to have accurate data from the utility meter sensors?

Thank you in advance. Let me know if I missed providing any important details.

UPD: I found that the issue occurs when, for some reason, the Total Energy value briefly drops to 0 (see example below). The Utility Meter helper then adds the last known value to the total. I hope I explained it clearly and that it makes sense.

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

The original was posted on /r/homeassistant by /u/aDomesticHoneyBadger on 2025-04-04 17:12:42+00:00.

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

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

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

The original was posted on /r/homeassistant by /u/Pianist_Dense on 2025-04-04 11:30:10+00:00.


So, I was at work when I got a notification from my outdoor sensor saying it had detected movement. This was unusual because the sensor is mainly there to measure temperature (it’s a multi-sensor) and is stationed on the roof of our shed. I checked HomeKit, but it just said the sensor was “not reachable.” I figured the battery had died, and the motion detection was its last goodbye.

Then I noticed that HomeKit showed 11 switches as turned on in the top bar. Since my wife and I weren’t home, I thought, “Why not turn them off while I’m here?” (I still don’t know why I imported all the switches into HomeKit.) Big mistake. Suddenly, all devices were shown as “not reachable.”

I tried opening Home Assistant and resetting the bridge, which obviously didn’t work. I was confused for a while. Then it hit me: My router is on the same energy-monitoring smart plug as my TV and media station (don’t judge me for that).

Moral of the story: Don’t put your router on a smart plug. Or better yet: Don’t aimlessly turn off ALL switches at home just for fun!

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

The original was posted on /r/homeassistant by /u/BackHerniation on 2025-04-04 10:26:53+00:00.

view more: ‹ prev next ›