Home Assistant

255 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
1
 
 
This is an automated archive made by the Lemmit Bot.

The original was posted on /r/homeassistant by /u/edgylukas on 2025-12-20 19:15:09+00:00.


HA WashData (v0.1, active development)

https://github.com/3dg1luk43/ha_washdata

Home Assistant custom integration to detect washer cycles from smart plug power, label programs, and estimate time remaining using NumPy shape correlation.

What it does

  • Detects start/finish from power draw with smoothing, off-delay, and ghost-cycle filtering.
  • Learns profiles from past runs; matches live traces via correlation, MAE, and peaks.
  • Provides sensors: state, program, time remaining, cycle progress, current power.
  • Manual program select entity to override/teach the system.
  • Notifications for start/finish and optional pre-completion heads-up.
  • Nightly maintenance to merge fragmented cycles and keep storage lean.

Status

  • Version: 0.1 (early stage, active development).
  • Expect rapid changes; breaking adjustments possible.
  • Feedback on detection stability, matching accuracy, and UI flow is welcome.

Install (HACS, Custom Repository)

  1. In HA, open HACS → Settings → Custom repositories.
  2. Add https://github.com/3dg1luk43/ha_washdata as type Integration.
  3. Install HA WashData from HACS and restart Home Assistant.

Manual fallback: copy custom_components/ha_washdata into your HA custom_components folder and restart.

Configure

  • Go to Settings → Devices & Services → Add Integration → HA WashData.
  • Pick your washer’s power sensor, set min power, name the device.
  • In Configure → Settings, you can Apply Suggestions to preload recommended values, then submit to save.
2
 
 
This is an automated archive made by the Lemmit Bot.

The original was posted on /r/homeassistant by /u/SignedJannis on 2025-12-20 19:12:54+00:00.


Sometimes an automation or script fails.

Example: my central heating automation, that has been working fine for years, just started silently failing due to "ecobee suddenly having expired keys" for whatever reason. That could be very bad, given our harsh winters. I've seen other users post about losing e.g thousands of dollars of wild meat, because their freezer failed and their notify automation also failed them, etc.

If an automation fails, I want to know about it.

The following automation will notify you if another automation/script fails unexpectedly. I suggest using a few different notification options, in case one fails - and use "continue_on_error: true" on each notification - because you dont want a notification-service-failure halting your automation-failure notifications! :)

I personally use a gmail notification, tts on a google home, "speak message aloud via tts on phone", and of course home assistant phone app notifications. Below example has email only, add whatever you need.

Note: you will need the following two lines in your configuration.yaml

system_log:

fire_event: true

automation:

alias: Automation Fail Detector - Notify
description: Triggers whenever any automation fails
triggers:
  - trigger: event
    event_type: system_log_event
    event_data:
      level: ERROR
conditions:
  - condition: template
    value_template: >-
      {{ 'automation' in trigger.event.data.name.lower() or 'script' in
      trigger.event.data.name.lower() }}
actions:
  - action: script.email_notification
    continue_on_error: true
    data:
      emailsubject: "Automation Failed: {{ trigger.event.data.name }}"
      emailbody: |-
        An automation has failed!

        Failed Component: {{ trigger.event.data.name }}

        Error Message: {{ trigger.event.data.message }}

        Source File: {{ trigger.event.data.source }}

        Time: {{ now().strftime('%Y-%m-%d %H:%M:%S') }}

        {% if trigger.event.data.exception != '' %}Exception Details:
        {{ trigger.event.data.exception }}{% endif %}
mode: queued
max: 20

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

The original was posted on /r/homeassistant by /u/BossRoss84 on 2025-12-20 06:48:13+00:00.

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

The original was posted on /r/homeassistant by /u/llzzrrdd on 2025-12-20 12:15:47+00:00.


Finally solved the problem that's been bugging me for years: my entire smart home depending on one VM staying alive.

The setup:

  • 3x Proxmox nodes with Pacemaker/Corosync clustering

  • DRBD replicated storage (3.6TB, dual-primary with OCFS2)

  • Floating virtual IP that moves between nodes on failure

  • Home Assistant, Mosquitto, Zigbee2MQTT, ESPHome, Node-RED all in Docker on NFS

  • Ethernet Zigbee coordinator (TubesZB) and Bluetooth proxy (Olimex ESP32-POE) — no USB dongles

  • Local voice assistant running on RTX 3090 Ti via Ollama — zero cloud

The big lesson: USB dongles and failover don't mix. Had to migrate everything to Ethernet-based peripherals before the cluster could actually fail over cleanly. Re-pairing 40+ Zigbee devices was... fun.

Now I can yank a power cable from any node and the house keeps working.

Full writeup with architecture diagram: https://kyriakos.papadopoulos.tech/posts/home-assistant-high-availability/

Happy to answer questions about the Pacemaker setup or the local voice stack.

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

The original was posted on /r/homeassistant by /u/babahumor on 2025-12-20 07:39:54+00:00.


I recently picked up the M5Stack Tab5 to use as a room controller. For those who haven't seen it, it's a 5" touch display running on the new ESP32-P4.

The best part is it runs ESPHome natively, so it integrates instantly into Home Assistant without needing an Android tablet setup or Kiosk browser issues.

What works:

  • 5" Touchscreen (super responsive)
  • Built-in Relays/Sensors [BMS, Mic, Camera, Rotation, Bluetooth, SDHC]
  • Direct API connection to HA

It took some work to get the config right since the chip architecture is new, but it's rock solid now. I've documented the full setup process and shared my config code here for anyone looking for a dedicated wall panel or a portable remote control to HA solution:

https://bababuilds.com/blog/esphome-on-m5stack-tab5/

Happy to answer questions if you're stuck setting one up!

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

The original was posted on /r/homeassistant by /u/NoAd9118 on 2025-12-19 22:35:18+00:00.

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

The original was posted on /r/homeassistant by /u/ginandbaconFU on 2025-12-19 23:38:03+00:00.

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

The original was posted on /r/homeassistant by /u/GeeHiAmyGee on 2025-12-19 17:37:27+00:00.

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

The original was posted on /r/homeassistant by /u/angrycatmeowmeow on 2025-12-19 15:43:14+00:00.

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

The original was posted on /r/homeassistant by /u/menofgrosserblood on 2025-12-19 12:58:51+00:00.


I installed Home Assistant on a Raspberry Pi 4 more than 3 years ago but for whenever reason, I never had much set up. The integration with Z-Wave was perplexing to me. Integrations versus devices versus entities. I got stuck on the dashboard, unable to change the primary dashboard.

For years I dreamed of having a working Home Assistant ecosystem but struggled.

In the last few weeks, I recommitted to it and finally understand the platform. And last night, I pressed an Aqara button from bed which turned off my TV and bedroom lights and turned on a fan. That complex automation worked Zigbee, Z-Wave and the Roku integration all at once, effortlessly.

I was able to get my door lock (Baldwin, Z-Wave) to display lock status on my dashboard. I put a temp and humidity sensor in our dahlia tuber cooler and had Claude write a bit of code that prints if the dahlias are happy or if they’re in the danger zone (too warm or too cool). I’ve integrated UniFi Protect and can see live video streams of my cameras from the dashboard. I can remotely turn off and on my Flex 8600M ham radio.

This is such a cool ecosystem and I’m excited to purchase more sensors.

Question: What sensor should I invest in to put around my house to create a Bluetooth presence map so I can find my wife’s iPhone when she misplaces it? The M5 Stack Atom?

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

The original was posted on /r/homeassistant by /u/joostlek on 2025-12-19 10:38:05+00:00.

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

The original was posted on /r/homeassistant by /u/k0enf0rNL on 2025-12-19 15:00:31+00:00.


So I just got a Hyundai Ioniq 5 2 weeks ago and I've created several automations to charge my EV at the cheapest times of the day. It is connected to my Google Calendar and uses the Google Routes API to figure out how much charge I need for the next event where I need the car.

When the car is plugged in it determines what charging strategy it should use based on the current charge and what I need for the next event in the calendar.

When the car is below 25% it starts charging immediately to 25% charge, no matter the current price.

Above 25% and below the target it will figure out how many minutes of charging it needs to reach the target and then calculates which moments to charge the car before the next event based on the energy prices.

Above the target it will charge the car when prices are cheap (below €0,20 per kWh for now) and calculates which of those moments where the price is cheap to use to get up to 80% charge. For example if the car needs only 30 minutes of charging and there are 2 moments of 15 minutes where the price is €0,16 per kWh it will use those 2 moments instead of other moments where the price is below €0,20 per kWh.

If prices are below €0,16 per kWh and the average of the day is above €0,22 (like last night) then it will charge to 100%. It will also charge to 100% if it has been 1 month since the last time it was charged to 100%, this is to extend the life of the battery. it will only do so if prices are below €0,20 per kWh.

When prices are not cheap enough the car will charge purely on solar energy.

To do all this I created some helpers which gather all events on the next day I need the car, total amount of km's that I need to drive for those events, the battery target based on the km's and an estimate of the amount of charge in the car because the car updates every 4 hours and I don't want to make that quicker and drain the 12V battery.

I also created the automations to charge the car at the right time of the day using a script which calculates the cheapest price window based on the amount of minutes I need and before which datetime I need it.

And to make it easily visible how much I have saved I used the Dynamic energy cost integration to track the actual cost per session, the normal cost for the session (using the daily price average), the total savings this session and the total savings since I started to track it.

This is what the dashboard looks like for now (forgive the Dutch)

https://preview.redd.it/3xd48o3uc68g1.png?width=1028&format=png&auto=webp&s=0ba4f8947fd4f1619fe6651ca4d6e58b3f3d1f83

Top right: Battery estimate (resets when car updates status)

Bottom left of top section: Total km's next day I need the car

Button top of middle section: Start charging the car NOW

Left select box of middle section: Charging strategy currently being executed (emergency, smart charge to target, cheap and force)

Right select box of middle section: Current state of the charger (currently pure solar)

Then the bottom section is Real session cost, Normal session cost, savings this session, total savings

Quite happy with how everything works so far, saved €2,73 last night which is about 34%. I will report back in a couple months to see how much home assistant has saved me.

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

The original was posted on /r/homeassistant by /u/BrightonBummer on 2025-12-19 14:42:14+00:00.

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

The original was posted on /r/homeassistant by /u/DiggingForDinos on 2025-12-19 14:02:44+00:00.

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

The original was posted on /r/homeassistant by /u/alyflex on 2025-12-19 11:10:06+00:00.


I have been programming for 2 decades at this point in a variety of languages, both high and low level, and I have intricate knowledge of python, yet despite this I feel utterly lost when trying to do much of anything in home assistant. I am currently running home assistant OS in a virtual machine on my server.

I have read the documentation on https://www.home-assistant.io/docs/ and have generally tried searching the forums every time I want to use home assistant for something. But it always just ends up being this kinda weird guesswork where I copy paste some stuff from someones yaml file and try to run it and if it doesn't work I'm fucked. Every time this happens I keep thinking how simple something like this would be to make if only I had my home assistant as a repository and python project that I could open in pycharm or visual studio, have type hints while programming, and click run or debug to test my solutions.

It is not even that I am completely unfamiliar with yaml programming. My server hosts a bunch of services all run through various docker compose files, however I feel like there is a huge difference between docker-compose.yaml, and the yaml's required by home assistant.

Am I doing something wrong? Is there an alternative to home assistant for people who actually do program?

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

The original was posted on /r/homeassistant by /u/GenericUser104 on 2025-12-19 10:13:17+00:00.

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

The original was posted on /r/homeassistant by /u/LongroofLover on 2025-12-19 04:41:47+00:00.


Code is VIPSHELLY

Enjoy!

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

The original was posted on /r/homeassistant by /u/Persistantly_Growing on 2025-12-19 01:41:56+00:00.

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

The original was posted on /r/homeassistant by /u/goyabean on 2025-12-18 20:41:01+00:00.


Looking for one with multiple unlock options, probably including a key backup for WAF. Something that can be unlocked with hands full or minimal shuffling would be ideal. Do most smart locks have a default state of being locked (eg. auto lock after 5 minutes)?

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

The original was posted on /r/homeassistant by /u/magaman on 2025-12-18 19:06:45+00:00.

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

The original was posted on /r/homeassistant by /u/sarrcom on 2025-12-18 21:38:41+00:00.


If you look at the new Ikea lineup it’s pretty amazing for very affordable prices. Should I get myself a Thread coordinator and slowly start buying Matter devices? No problem if it takes years to switch. No rush. Thoughts?

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

The original was posted on /r/homeassistant by /u/Bubbly-Spring-3696 on 2025-12-18 15:10:52+00:00.

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

The original was posted on /r/homeassistant by /u/Superb-Ideal9836 on 2025-12-18 13:08:55+00:00.

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

The original was posted on /r/homeassistant by /u/mellowbalmyleafy on 2025-12-18 00:08:59+00:00.

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

The original was posted on /r/homeassistant by /u/PharQ2693 on 2025-12-17 22:34:07+00:00.

view more: next ›