Home Assistant

394 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/BackHerniation on 2025-06-12 10:01:42+00:00.

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

The original was posted on /r/homeassistant by /u/liquidsoap89 on 2025-06-12 00:13:57+00:00.


A map! That does things!

Hey everyone. Just wanted to share my first big success story with HA! I'd been wanting to make a floor map dashboard for ages and I finally dove in.

It's a super simple dashboard right now, for the most part it's just a few buttons over things I can control, but I wanted to keep it simple initially so that there was an end in sight. The highlight right now is how turning the lights on illuminates that part of the map. It was really satisfying seeing that work the first time.

Part of this project came from me wanting to get back in to 3D modelling/animation, which I used to do what feels like a lifetime ago. There was a nice mix of nostalgia and discovery making the map and integrating it in to HA.

There was a "top 20 things to do when getting started with HA" post I saw ages ago and one of the points that stood out to me was "share your first success with others". I think that's a great idea (hence this post) because it's easy to get lost in others accomplishments here and not appreciate your own success. This dashboard is hella basic compared to some of the stuff on here, but it's MY dashboard and I feel good about it.

Of course I'm already looking in to version 2. I've had my eyes on this style of dashboard for well over a year now and that's going to tax my programming-limited knowledge to its limits. There's also a lot of additional work I want to do to the map itself, not the least of which is a second pass at the very flat lighting. Looking forward to it though!

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

The original was posted on /r/homeassistant by /u/zer00eyz on 2025-06-11 22:41:18+00:00.


I feel like I have lost the plot on this idea so before I spend the money I would love a sanity check.

For texting with local control via: https://github.com/capcom6/android-sms-gateway

  1. It's a real cell phone on a real plan so 2FA accounts that block Twilio/ sms gateways will see it as "person".
  2. I can use the same app to forward 2FA messages to be shared (as sms)
  3. Its fixed cost
  4. It works when the internet is down. HA can text me via local API over wifi and out over cell sms gateways would be down.
  5. It means my house has its own accounts for things that require a phone number to use (WhatsApp/signal/telegram), rather than use an existing account.

Im still looking at ways to "Remote Desktop"(and there are plenty) into the phone itself for 2FA applications, allowing these to be shared as well.

Ultimately being able to answer calls on it would be grand as well but I am not likely to give the houses number out to any one I care about. I would assume everything coming in is just spam so why pick it up? (I conceded that this might change).

Is this a dumb idea? Am I missing something on the market I should be using? If I go this way are there other/features benefits I haven't thought of that might make it worth while?

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

The original was posted on /r/homeassistant by /u/frenck_nl on 2025-06-11 20:07:41+00:00.

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

The original was posted on /r/homeassistant by /u/EsoRimmerX on 2025-06-12 00:17:03+00:00.

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

The original was posted on /r/homeassistant by /u/ElementZoom on 2025-06-11 05:23:28+00:00.

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

The original was posted on /r/homeassistant by /u/Alt_Lightning on 2025-06-11 03:31:55+00:00.

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

The original was posted on /r/homeassistant by /u/ZaFish on 2025-06-10 23:04:19+00:00.


https://github.com/ZeFish/hass_mood_controller

Hey, r/homeassistant!

Like many of you, I love Home Assistant for its power to connect everything. But I always felt something was missing—a kind of "rhythm" for my home's lighting. The problem was this: I’d set the perfect "Evening" mood across the house, then start a movie in the living room which triggers a special "Movie" scene. When the movie ends, I don't want the lights to go back to what they were before the film; I want them to sync up with the current home-wide mood, which might have transitioned to "Night" while I was watching.

Over time, I created this script that began as a proof of concept but after a year it became my own Home Assistant Mood Controller, a scripting system that brings stateful, hierarchical control to the lighting. It ensures my home's atmosphere is always in sync with our daily routine.

TLTR BEGIN

It’s like having metadata for your areas. Some sort of exif data that you find in jpg that contain information like camera and lens model. Only this time it is information about a room. Based on that information you can change the action of your switches and do pretty much all you ever desire in automation.

TLTR END

The Core Idea: Moods and Presets

The system is built on a simple two-tiered philosophy: Moods and Presets.

Moods are the high-level, home-wide scenes that define the general ambiance. They are the primary states of your home. My setup uses five moods based on the time of day:

  • Morning: Calm, easy light to start the day.
  • Day: Bright, functional lighting.
  • Evening: Warm, comfortable lighting.
  • Unwind: Softer lighting for relaxation.
  • Night: Very dim, gentle lighting.

Presets are variations of a Mood, used for temporary, room-level control without breaking the overall rhythm. I use those in my physical room switches. The standard presets are:

  • default: The main scene for the current mood.
  • bright: A brighter version of the current scene.
  • off: Turns the lights off in that specific area.

This means you can have the whole house in the Evening mood, but temporarily set the kitchen to the bright preset for cooking, all with a single, consistent system. I've also added a toggle feature so a single button on a physical switch can toggle between "bright" and "default". That mean I can always have a nice ambiance while being able to have working light anytime and since those are on switches, it is easy for people to use.

How It Works: The 4 Key Parts

The whole system is built on a few core components that work together:

  1. ⁠⁠⁠⁠State Helpers (input_text): The current mood and preset for the home and each individual area are stored in input_text helpers. This is the magic that makes the system "stateful"—any other automation can instantly know the exact state of any room.
  2. ⁠⁠⁠⁠The Controller (script.mood_set): This is the central script that does all the work. You call it with the area, mood, and preset you want. It's the only script you ever need to interact with directly.Here's how you'd call it to sync the living room back to the main house mood after a movie:
action:
      - service: script.mood_set
        data:
          target_areas: living_room
          mood: "{{ states('input_text.home_mood') }}"

  1. ⁠⁠⁠⁠The Automation (automation.home_mood_change): A simple automation that watches the main input_text.home_mood helper. When that helper changes (e.g., from Evening to Night), it calls script.mood_set to propagate that change to all the rooms in the house (that aren't locked).
  2. ⁠⁠⁠⁠The Mood Scripts (script.mood_{mood_name}): This is where you define what your lights actually do. For each mood (like Morning), you create a script that defines the scenes for each preset (default, bright, etc.). The controller script dynamically calls the correct mood script based on the variables you pass.

Some features that I needed over time

  • Area Locking: Have a room you don't want to be affected by house-wide changes (like a sleeping baby's room)? Just turn on an input_boolean.[area_id]_lock. The system will skip it, but you can still control the room's lights with local controls.
  • Performance Optimized: The script is smart. If you tell it to set 4 rooms to default and 1 room to off, it makes two optimized calls instead of five, which keeps things fast.
  • Event Hook: The controller fires a mood_setted event when it's done, so you can hook in other automations for even more advanced control.

Automation Ideas (My recent rabbit hole!)

Because the state of every room is always known, you can create some really intelligent automations

Movie Time Automation

This automation locks the living room when the projector turns on. When a movie starts playing, it sets a special "Movie" mood. If you pause for more than 30 seconds, it syncs the lights back to the current house mood, and when the movie is over, it unlocks the room and restores the home mood.

alias: Movie
triggers:
  - trigger: state
    entity_id: - media_player.projector
    to: playing
    id: Playing
  - trigger: state
    entity_id: - media_player.projector
    to: idle
    id: Stop
    for: "00:00:30"
  - trigger: state
    entity_id: - binary_sensor.movie_mode
    to: "off"
    id: Projector Off
actions:
  - choose:
      - conditions:
          - condition: trigger
            id: Playing
        sequence:
          - action: script.mood_set
            data:
              target_areas: - living_room
              mood: Movie
      - conditions:
          - condition: trigger
            id:
              - Stop
              - Projector Off
        sequence:
          - action: script.mood_set
            data:
              target_areas: - living_room
              mood: "{{ states('input_text.home_mood') }}"

Motion-Based Night Light

This only triggers if the kitchen is already in the Night mood. If motion is detected, it switches to a special motion preset (a dim light). When motion stops for 2 minutes, it sets the preset back to default (the standard Night scene).

alias: Kitchen - Night - Motion
trigger:
  - platform: state
    entity_id: binary_sensor.kitchen_motion_occupancy
    to: "on"
    id: "Detected"
  - platform: state
    entity_id: binary_sensor.kitchen_motion_occupancy
    to: "off"
    for: "00:02:00"
    id: "Cleared"
condition:
  - condition: state
    entity_id: input_text.kitchen_mood
    state: "Night"
action:
  - choose:
      - conditions:
          - condition: trigger
            id: "Detected"
        sequence:
          - service: script.mood_set
            data:
              target_areas: - kitchen
              preset: motion
      - conditions:
          - condition: trigger
            id: "Cleared"
        sequence:
          - service: script.mood_set
            data:
              target_areas: - kitchen
              preset: default

On a practial level...

I have one automation for each mood that know the rhythm that I like.

Morning : Is set after 6:30 when tree principal room had motion for more than 45 seconds. At that time, the house get into Morning mood and all the rooms follow. It only apply in the morning when the current home mood is Night.

Day : This one is actually only set when the outdoor luminance is above 4200 and the current home mood is either Morning or Evening

Evening : This one get set when outdoors illuminance gets above 1000 in the afternoon or at 4:30pm and only when the current home mood is Morning or Day

Unwind : This one goes on at 6:30pm, it let my kids know if time for night routine

Night : at 10:30pm the home goes into night mood

Other things I like to do with that stateful lighting system

  • My speaker volume follows the mood
  • I get many motion automation based on the current mood of the room
  • When any room is in preset bright without motion for more than 15 minutes, it goes back to preset default
  • When the rooms are in the preset off, i make sure there is no motion automation that can turn the light back on
  • If a room is currently in morning|bright and the house mood change to evening, the room will follow the house mood but will keep it's preset so will go to evening|bright
  • Remove all the notification when the house is in mood Night

I've put together a github with the full code, setup instructions, and more automation examples. https://github.com/ZeFish/hass_mood_controller

I'd love to hear what you think! Has anyone else built a similar system?

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

The original was posted on /r/homeassistant by /u/jbeceiro on 2025-06-10 18:24:55+00:00.

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

The original was posted on /r/homeassistant by /u/fincorperated on 2025-06-10 14:07:11+00:00.

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

The original was posted on /r/homeassistant by /u/Chemical-Tonight-390 on 2025-06-10 16:18:30+00:00.

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

The original was posted on /r/homeassistant by /u/Minechris_LP on 2025-06-10 12:58:44+00:00.


Raw input of humidity sensors

Above you can see my humidity sensors at home, but I always found it difficult to extract usful event from such noisy data, because the outside humidity affects it so much. Because I have some knowledge in data analysis, I have experimented a bit and found something very useful, I would like to share for the community.

Humidity average of all sensors

At first I created a helper to calculate the average humidity from all sensors. Then I made another Template-helper that took the difference (humiditiy - average humidity):

{{(states('sensor.sensor_bathroom_humidity')|float)- (states('sensor.appartment_humidity_average')|float)}}

How I made my Template-Helper

This resulted in every room having relative humidity sensors:

Humidity sensors with substracted humidity average

This way I can now easily see spikes in humidity in the kitchen (blue) and the bathroom (yellow). This worked so well, I can detect water boiling for a tea from 2 meters away from my sensor location.

Final sensors of kitchen (blue) and bathroom (yellow) humidity only

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

The original was posted on /r/homeassistant by /u/Darkchamber292 on 2025-06-10 12:29:27+00:00.

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

The original was posted on /r/homeassistant by /u/Pivotonian on 2025-06-10 11:44:15+00:00.

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

The original was posted on /r/homeassistant by /u/kein-hurensohn on 2025-06-10 11:23:17+00:00.


This is not strictly Home Assistant related, but I love how well they explain remote switches, and that they outline the benefits, like more flexibility and less resource usage / waste.

“Die Sendung mit der Maus” is (one of) the most popular educational TV shows for children in Germany.

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

The original was posted on /r/homeassistant by /u/williamsdb on 2025-06-09 09:41:27+00:00.

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

The original was posted on /r/homeassistant by /u/krisniem on 2025-06-09 20:57:22+00:00.

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

The original was posted on /r/homeassistant by /u/ericbigguy24 on 2025-06-09 17:24:46+00:00.


please pile on to this feature request, thanks!

https://github.com/home-assistant/iOS/discussions/2159

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

The original was posted on /r/homeassistant by /u/beculet on 2025-06-09 07:39:39+00:00.


My hallway lights are controlled by a MTG275-ZB-RL which works fine despite Tuya MmWave being notorious about Zigbee spam, but this is not about this.

Yesterday I have noticed that my lights will not turn off because they were seeing someone at about 3m from the sensor when there was clearly no one there. So I do what any one of us normal Home Assistant users would do.

I start checking the Zigbee logs, I mess with the configuration, and it has tons. I changed something, it would turn off, then without any reason turn back on. It drove me nuts.

In the end I gave it up as being faulty after 2 years of daily use and was searching for a replacement. I already had the automation I needed to turn it off during the night so it wont keep the lights on until Ali would deliver.

So after about one hour of doing this my wife comes downstairs and casually says: I told you to be careful when carrying the groceries in, we have a fly in the hallway!

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

The original was posted on /r/homeassistant by /u/calamansi_rodeo on 2025-06-09 15:42:49+00:00.

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

The original was posted on /r/homeassistant by /u/Alarming_Divide_1339 on 2025-06-09 11:25:58+00:00.

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

The original was posted on /r/homeassistant by /u/Yayman123 on 2025-06-09 04:56:20+00:00.

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

The original was posted on /r/homeassistant by /u/Affectionate-Boot-58 on 2025-06-09 00:49:08+00:00.

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

The original was posted on /r/homeassistant by /u/_Juicebox- on 2025-06-08 15:13:35+00:00.

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

The original was posted on /r/homeassistant by /u/momo1822 on 2025-06-08 15:06:56+00:00.

view more: next ›