Home Assistant

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

The original was posted on /r/homeassistant by /u/DaveFX on 2025-06-16 12:24:48+00:00.


Last weekend I installed a misting system in my patio garden to help cool down the space during the hot summers in Madrid. The system uses a pressurized water line managed by a Zigbee solenoid valve. The valve is supported and controlled by my Home Assistant setup via Zigbee2MQTT.

Rather than keeping the misting always on (wasting water and risking over-saturation), I wanted a smart automation that:

  • Activates misting only when I manually trigger it,
  • Adapts to weather conditions like temperature, humidity, and wind,
  • Automatically cycles on and off for as long as it's active,
  • Lets me cancel everything with a single press.

The result is a reusable Home Assistant blueprint that anyone can install and tweak for their own use.

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

The original was posted on /r/homeassistant by /u/A_Yoozername on 2025-06-16 08:36:18+00:00.

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

The original was posted on /r/homeassistant by /u/Koalamanx on 2025-06-16 06:00:40+00:00.


Hey all,

After a fair bit of going nuts, I finally got a dashboard card that I'm super happy with and wanted to share a full write-up in case anyone else wants to build it.

The goal was to have a clean, dynamic summary of the upcoming weather, personalised for my dashboard. Instead of just numbers, it gives a friendly, natural language forecast.

Here's what the final result looks like, and thank you big time to /u/spoctoss for troubleshooting:

Dashboard containing the Weather Markdown Card

It's all powered by the AI (GPT or Claude, etc.) integration, but it's incredibly cheap because it uses the Haiku model or similar.

Here’s the step-by-step guide.

Part 1: The Foundation - A Trigger-Based Template Sensor

First things first, we need a place to store the long weather summary. A normal entity state is limited to 255 characters, (this really cost me some nerves) which is no good for us. The trick is to use a trigger-based template sensor and store the full text in an attribute. This way, the state can be a simple timestamp, but the attribute holds our long forecast.

Add this to your ⁠configuration.yaml (or a separate template YAML file if you have one):

                template:
                  - trigger:
                      # This sensor only updates when our automation fires the event.
                      - platform: event
                        event_type: set_ai_response
                    sensor:
                      - name: "AI Weather Summary"
                        unique_id: "ai_weather_summary_v1" # Make this unique to your system
                        state: "Updated: {{ now().strftime('%H:%M') }}"
                        icon: mdi:weather-partly-cloudy
                        attributes:
                          full_text: "{{ trigger.event.data.payload }}"

After adding this, remember to go to Developer Tools > YAML > Reload Template Entities.

Part 2: The Automation

This automation runs on a schedule, gets the latest forecast from your weather entity, sends it to the AI to be summarised, and then fires the ⁠set_ai_response event to update our sensor from Part 1.

Go to Settings > Automations & Scenes and create a new automation.

Switch to YAML mode and paste this in:

Remember to change the alias to something you like, I chose the alias: AI Weather Summary

description: Generate AI weather summaries throughout the day
trigger:
  # Set whatever schedule you want. I like a few times a day.
  - platform: time
    at: "07:30:00"
  - platform: time
    at: "10:00:00"
  - platform: time
    at: "14:00:00"
  - platform: time
    at: "18:00:00"
condition: []
action:
  # 1. Get the forecast data from your weather entity
  - service: weather.get_forecasts
    data:
      type: hourly
    target:
      # IMPORTANT: Change this to your own hourly weather entity!
      entity_id: weather.your_weather_entity_hourly
    response_variable: forecast

  # 2. Send the data to the AI with a specific prompt
  - service: conversation.process
    data:
      agent_id: conversation.claude
      # This is the fun part! You can change the AI's personality here.
      text: >-
        Generate a plain text response only. Do not use any markdown or tags.
        Start your response with a single emoji that reflects the
        overall weather. Follow it with one or two friendly sentences
        summarizing the weather for today in [Your Town/City] based on the data.

        Forecast Data:
        {% for f in forecast['weather.your_weather_entity_hourly'].forecast[:4] -%}
        - At {{ f.datetime[11:16] }} it will be {{ f.condition }}, {{ f.temperature | int }}°C, {{ f.precipitation_probability }}% rain chance, and a UV Index of {{ f.uv_index }}.
        {%- endfor %}
    response_variable: ai_output

  # 3. Fire the event to update our sensor from Part 1
  - event: set_ai_response
    event_data:
      # This cleans up any stray tags the AI might add, just in case.
      payload: "{{ ai_output.response.speech.plain.speech | string | replace('<result>', '') | replace('</result>', '') }}"
mode: single

Don't forget to change ⁠weather.your_weather_entity_hourly to your actual weather entity in two places in the code above!

Part 3: The Markdown Card

This is the easy part. We just need a markdown card to display everything. I combined mine with a dynamic "Good Morning/Afternoon" greeting, which is a nice touch. Add a new Markdown card to your dashboard and paste this:

type: markdown
content: |
  # {% set hour = now().hour %} {% if 4 <= hour < 12 %}
    Good morning, [Your Name] ☀️
  {% elif 12 <= hour < 18 %}
    Good afternoon, [Your Name] 🌤️
  {% else %}
    Good evening, [Your Name] 🌙
  {% endif %}
  #### {{ now().strftime('%A, %d %B %Y') }}
 
***
  {{ state_attr('sensor.ai_weather_summary', 'full_text') }}

Part 4: Keeping API calls it CHEAP!

This uses the GPT or Anthropic integration, and by default, it might use a powerful (and expensive) model.

For a simple task like this, you want the cheapest and fastest model.

  1. Go to Settings > Devices & Services and click Configure on the Anthropic integration.

  2. Uncheck the box that says "Recommended model settings".

  3. In the Model field that appears, paste this exact model name:

⁠claude-3-haiku-20240307

Hit Submit!

This will ensure your costs are literally cents a month. My usage for 5 calls a day is less than a cent.

And that's it!

Let me know if you have any questions or ideas to improve it. Hope this helps someone and put's a smile on your face :)

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

The original was posted on /r/homeassistant by /u/Due_Carpenter5909 on 2025-06-16 03:43:11+00:00.

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

The original was posted on /r/homeassistant by /u/mesoraven on 2025-06-16 00:22:19+00:00.


So few weeks back I asked for recommendations for quick easy cameras because someone cut the lock on my gate.

Several people said reolink and THANK YOU. Super super easy to set up and integrate into home assistant and tonight it did its Job perfectly.

Someone tried to get near the gate and before they could get close enough to disturb the chain or the camera to even get a good look at them. It detected a person and my lights house lights came on and my speakers started playing an alarm.

The twat was gone and out of sight before I'd even managed to get to the door with the dog.

Honestly I can't reccomend reolink enough or thank you all for the advice enough

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

The original was posted on /r/homeassistant by /u/kwaczek2000 on 2025-06-15 19:26:03+00:00.

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

The original was posted on /r/homeassistant by /u/Awkward-Feeling-8580 on 2025-06-15 08:58:01+00:00.

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

The original was posted on /r/homeassistant by /u/PGnautz on 2025-06-15 05:50:49+00:00.

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

The original was posted on /r/homeassistant by /u/lsv20 on 2025-06-14 20:18:41+00:00.


I made my first custom module.

It gets the sector flag and full course flag status.

Then I made so one of my lams is changing the color for 1 minute when flag status changes.

Edit

Now im curious if it actually works, there haven't been any flags since I finished it

I forgot the files: https://gist.github.com/lsv/e617de8a36081e1e658a385f64e943e2

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

The original was posted on /r/homeassistant by /u/JohnKCarter on 2025-06-14 22:24:52+00:00.


Upgrading breaks the Govee 2025.1.1 integration. At least for me.

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

The original was posted on /r/homeassistant by /u/freeluv on 2025-06-14 18:29:01+00:00.


I was looking for a card that would auto-switch to the most recently playing entity so i could aggregate my players in a single card. It kind of spiraled from there and I have been actively adding tweaks and features to it (like being able to add custom action buttons for any home assistant service AND target the currently selected entity).

This is my first real submission to the community and would love for everyone to try it out.

It's in the official HACS repo so you can just search for yet another media player. Hope someone finds it useful!

62
 
 
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-14 20:09:11+00:00.

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

The original was posted on /r/homeassistant by /u/getridofwires on 2025-06-14 15:53:02+00:00.

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

The original was posted on /r/homeassistant by /u/wivaca2 on 2025-06-14 15:03:04+00:00.


My wife and I are Star Trek fans, and I know that Majel Barret Roddenberry (Nurse Chappel, Lwaxana Troi, wife of Gene Roddenberry) recorded material necessary to allow Star Trek and others to continue to use her voice for the franchise and other applications.

Has anyone found a good TTS source that has her voice and, hopefully, some of the specific diction she used on Star Trek as the computer voice? It's a bit more precise/stacatto than her natural voice.

In researching this I found a neat piece of trivia on this site: https://movieweb.com/rod-roddenberry-majel-barrett-roddenberry-computer-voice/

Google and Apple were working on a voice-controlled personal assistant that would be based on Barrett-Roddenberry's voice. In a recent Geek Girl Authority interview, [Rod] Roddenberry said,

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

The original was posted on /r/homeassistant by /u/Western_Employer_513 on 2025-06-14 12:39:11+00:00.

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

The original was posted on /r/homeassistant by /u/xScope44 on 2025-06-14 12:24:01+00:00.

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

The original was posted on /r/homeassistant by /u/Mysterious_Handle414 on 2025-06-14 08:22:15+00:00.

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

The original was posted on /r/homeassistant by /u/Effective_Run_4364 on 2025-06-14 07:31:42+00:00.


I’m using the default sections dashboard in Home Assistant, with several sections stacked horizontally. After updating to 2025.6.0, all of them disappeared, only the top header section is left.

The first time it happened, I had just taken the tablet dashboard off the wall and updated right after, so I thought I might’ve accidentally deleted the views while working. I restored from backup and everything came back.

But then I updated HA again next day, and the same thing happened every section except the header is gone.

Is anyone else seeing this after the 2025.6.0 update?

Any idea what could be causing this? Something new in 2025.6.0 maybe?

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

The original was posted on /r/homeassistant by /u/maxi1134 on 2025-06-14 00:55:31+00:00.


The code to each one of them; If something catches your eye!

  • 'Alert maxi when people are too noisy on the patio during a party '
  • 'Bedroom hue tap remote automation '
  • 'Disable automatic back horn when Alarm system is disarmed '
  • 'Disable Waiting someone after an hour '
  • 'Frigate back Doors Notifications '
  • 'Frigate front Doors Notifications '
  • 'Turn off Livingroom lights when bedroom Sleeper turns on '
  • 'unDim Wall lights when livingroom TV is stopped '
  • Adjust Chromecast volume when unmuted after a long moment
  • Adjust closet tablet screen brigthess to match the lights
  • Adjust hallway tablet screen brigthess to match the lights
  • Adjust livingroom tablet screen brigthess to match the lights
  • Alert house-wide when there is smoke in the kitchen
  • Alert if someone is loitering by the car for too long
  • Alert if the front door remains unlocked for too long
  • Alert maxi if someone enters his room while alarm is set to armed home
  • alert maxi if someone goes into the hotbox during a party
  • Alert maxi in the room where he is when his phone rings
  • Alert maxi is someone comes in while he is sleeping
  • Alert maxi that his laptop battery is low
  • Alert maxi when a work timer ends
  • Alert Maxi when the automatic back horn is disabled
  • Alert people in the back to go away
  • Alert that the front door remained open
  • Alert that the vacuum is stuck
  • Alert when back horns rings and offer to turn it off
  • Alert when Cooking timer is finished
  • Alert when dryer finishes!
  • Alert when Microwave finishes
  • Alert when someone is in the back
  • Alert when someone is in the back (Reolink)
  • Alert when someone is in the front
  • Alert when someone is in the parking
  • Alert when the fridge remains open
  • Alert when the horn goes off and offer to turn it off
  • Alert when the stove water is boiling.
  • Alert when there is motion inside during arm away and trigger alarm
  • Alert when there is noise on the terasse
  • Alert when Washer finishes
  • Analyze person in the parking when car is present to detect burglary
  • Arm Alarm-Away when "User home" is off for 10 minutes
  • Arm night alarm when everyone is sleeping
  • Assist Equalize volume in the house
  • Assist identify the device
  • Assist mute ESP32 endpoints when room is unoccupied
  • Assist play music (default)
  • Assist play next song
  • Assist Play random music
  • Assist play song by artist next
  • Assist Play song by artist now
  • Assist quick color change phrase
  • Assist Restart Music Assistant
  • Assist Set Thermostats
  • Assist Show cameras on TVs
  • assist Stop home group music
  • Assist Trigger find my phone
  • Assist turn off ESP32 endpoint screens when room is unoccupied
  • Assist turn on ESP32 endpoint screens when room is occupied
  • Assist Unmute ESP32 endpoints when room is occupied
  • Auto close closet tablet screen when someone is sleeping
  • Auto vacuum the entrance
  • Automaticaally Turn off sleeper in patio
  • Automatically turn back door light back off
  • Automatically turn off acid time mode
  • Automatically turn off aerating appartment
  • Automatically turn off Back door light when there is no motion
  • Automatically turn off bathroom light
  • Automatically turn off party mode
  • Automatically turn off sleeper in livingroom
  • Automatically turn off the back security horn after 2 minutes and ask if
  • Automatically turn off the front security horn after 2 minutes and ask if
  • Automatically turn off TVs
  • Automatically turn off waiting uber
  • Back lock automation
  • Bedroom Hue Dial Automation
  • Change light to random colors on press
  • Change light to random pastel colors on press
  • close bedroom blind in relation to bedroom ac
  • Close bedroom cover when sleeper turns on
  • Close blinds when the house is empty
  • Close covers in the room when chromecasts start movie
  • Close hotbox blind in relationship to hotbox ac
  • Close hotbox blinds when children leaves for 10 minutes
  • Close Livingroom Blind in relation to AC
  • Close salon blind in relationship to ac
  • Close salon blind sometimes after sun closes
  • Conditionally Unmute Speakers when a room is occupied
  • Control brightness of Closet tablet to avoid discharge
  • Control brightness of Front door Phone to avoid discharge
  • Control Hallway Tablet charging
  • Control LivingRoomTablet charging
  • Control volume of kitchen to prevent noise in children room while she sleeps
  • dial hallway automation
  • dial kitchen control automation
  • Dial livingroom library control
  • Dial livingroom wall control automation
  • Dial office control automation
  • dial office desk control automation
  • Dial salon automation
  • Dim Wall lights when livingroom TV is playing and Beige couch or matress
  • Disable Automatic Back Horn when resident arrives
  • Disable Sleeper in children room when children leaves
  • Disarm alarm night when someone awakes
  • Disarm alarm-away when "User Home" turns on
  • Display room color on TVs when mimiclights mode is triggered
  • Display room color on TVs when mimiclights mode is triggered
  • Display Salon Display interface
  • Doorbell Main automation
  • Doorbell Show received notification answer on phone
  • Enable automatic Back Door Horn when Lylou is alone
  • Enable Following Music When all residents sleeping goes to ON after being
  • execute Sleep actions when "sleeper in bedroom" is turned on
  • Execute sleep actions when "Sleeper in closet" turns on
  • Frigate Parking notifications
  • Front door automation on unlock for conditional codes
  • Front door automation on unlock for main codes
  • Hibernate Maxi Desktop when he leaves the Salon for more than 20 minutes
  • Hibernate Maxi Desktop when he sleeps for over 5 minutes
  • hotbox down dial automation
  • Hotbox Top Black hue Dial Automation
  • Immediately mute bathroom speaker when door open and stuff is playing around
  • Immediately mute bathroom speaker when door open if all residents are sleeping
  • kitchen google display automation
  • Lock back door 5 minutes after unlocking
  • Lock back door when it is closed for 5 seconds
  • Lock front door 5 minutes after unlocking
  • Lock front door when it is closed for 5 seconds
  • Lock tablets on triggered alarm
  • Lower hotbox down light when maxi open his webcam
  • Lower sound when assist in progress
  • Lower volume if police is detected in the front during a party
  • Manage bedroom AC through maxi occupancy
  • Music Assistant - Local(only) Voice Support Blueprint
  • Mute bathroom speaker when door opens
  • Mute bathroom speaker when no motion and door open
  • Mute chromecasts when they play PLEX visuals
  • Mute chromecats when unmuted speakers plays in the same room
  • Mute Speakers if Songs myriam don't like are playing
  • Mute Speakers in the hotbox when computer mic is in use
  • Mute speakers in the room if maxi uses a microphone
  • Mute speakers when the room is empty
  • Mute speakers when unmuted chromecast plays in the same room
  • Notify on potential package
  • Notify when someone leaves through front door
  • Open bedroom blind in relation to bedroom ac
  • Open bedroom covers when the person awakes
  • Open Hotbox Blind in relation to AC
  • Open Livingroom blind in relation to AC
  • Open phone to 911 number when smoke "call 911" notification is pressed
  • Open Salon Blind in relation to AC
  • Philips hue dial automation
  • Play Muzak in the bathroom when someone enters
  • Play Random Music when maxi awakes at home
  • Raise bathroom volume when door closes
  • Raise lights to 60% brightness when a movie is paused and the brightness
  • Raise music on the playing speaker when the Bathroom fans goes on
  • Raise volume when the AC starts in a room
  • Reload Hallway tablet start URL when occupancy of hallway goes to off for
  • Reload livingroom tablet start URL when occupancy of livingroom goes to off
  • Reload tablet page when motion is detected in the kitchen
  • Reload tablets 4 minutes after HA restarts
  • Reload tablets when frigate changes state
  • Replace Spotify with Muzak playlist after 3.5 minutes
  • Reset doorbell stuff on unlock
  • Restart FFMPEG noise detection if it crashes
  • Ring horn in the back if someone tries to approach while maxi is scared
  • Set back door camera floodlight to auto during night time
  • Set front door screen text
  • Set the kitchen hub volume to 100% on app launch
  • Set Wallpaper engine colors to match the lights
  • Show main screen when music stops on Hallway tablet
  • Skips song's myriam don't like whe she is home
  • Sleep actions when "all resident sleeping" is turned on
  • Sleep actions when "maxi is sleeping" is turned on anywhere
  • Sleep actions when "sleeper in hotbox" is turned on
  • Sleep actions when "sleeper in livingroom" is turned on
  • Sleep actions when "sleeper in patio" is turned on
  • Sleeper actions when salon sleeper turns on
  • Speaker Automatic Volume v4
  • Start bathroom fan when Shower in Usage turns on
  • Start bathroom muzak when door closes
  • Start music when maxi returns home
  • Start rain sounds where maxi is sleeping
  • Start visuals on all inactive TVs
  • Stop bedroom speaker when bedroom sleeper awake
  • Stop speakers on disarm
  • Stop thunderstorm sound when bedroom awakes
  • Tell maxi about the weather when he awakes
  • Tell maxi when his watch is charged
  • Toggle sleeper in bedroom on button press
  • Trigger all home defense script through notification
  • Trigger back horn when someone loiters for too long at the door
  • Trigger front horn through phone notification
  • Trigger In home defense script through phone notification
  • Trigger in-home defe...

Content cut off. Read original on https://old.reddit.com/r/homeassistant/comments/1law2m7/now_at_270_automation_and_i_still_got_many_ideas/

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

The original was posted on /r/homeassistant by /u/portalqubes on 2025-06-13 20:08:19+00:00.

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

The original was posted on /r/homeassistant by /u/ImJohnGalt on 2025-06-13 19:02:03+00:00.


I'm intrigued by the idea that you might be able to wear the voice interface around the house instead of having to have multiple microphones. Especially so if the device has enough power to process the voice commands locally. This article got me thinking about it. https://www.pcmag.com/articles/hacker-revives-humane-ai-pin

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

The original was posted on /r/homeassistant by /u/bz386 on 2025-06-13 18:25:41+00:00.


Wyze outdoor plugs are very versatile and reliable devices, but unfortunately only support cloud control. I really wanted to get rid of the cloud dependence, so I did some research.

Someone previously managed to flash ESPHome to the device by soldering a USB TTL interface to the flashing pads on the device and documented it in this excellent blog post.

I really didn't feel like breaking out a soldering iron or opening the device, so I looked for a software-only solution. It turns out it is possible to flash custom firmware without any hardware hacks. I have documented the process in this blog post. Hopefully this helps someone who is as hardware-challenged as I am.

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

The original was posted on /r/homeassistant by /u/vortexnl on 2025-06-13 16:02:43+00:00.

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

The original was posted on /r/homeassistant by /u/Durahl on 2025-06-13 14:30:26+00:00.


Greetings!

I'm currently using a Logitech Harmony HUB to turn on devices like my TV, Console, and PC using Infrared but have been wondering if there's a similar DIY Alternative to one which too can be trained using a devices original IR Remote for home integration? ( essentially what I want to do is IR Control my old Dyson AM06 which the Logitech Harmony HUB doesn't accept as a valid Device )

https://i.redd.it/h2yyvbi6gp6f1.gif

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

The original was posted on /r/homeassistant by /u/Travel69 on 2025-06-13 13:36:43+00:00.


If you are an Apple user and would love to trigger Home Assistant automations based on focus mode changes, this post is for you. While in iOS 18 Apple made this fairly easy for most focus modes, "Sleep" was special for some reason. It was missing the focus mode "on" and "off" triggers that every other focus mode had.

For iOS 18, I have a fresh blog post that uses a simple third party utility to FULLY automate ANY focus mode change on your iPhone. I now have fully automated bedtime scenes that turn on when sleep focus mode is enabled, and a morning scene that is triggered when sleep focus mode is turned off.

In iOS 26 developer beta 1, Apple has removed the sleep focus mode limitations and now all focus modes have the same "on" and "off" triggers. This means no third party tool is needed on iOS 26 to trigger HA automations for ALL focus modes.

Check out my full how-to guide here for iOS 18 and iOS 26:

Home Assistant: Trigger on ANY iOS 18 + iOS 26 Focus Mode

view more: ‹ prev next ›