Home Assistant

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

The original was posted on /r/homeassistant by /u/kingshit909 on 2025-03-02 03:29:56+00:00.

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

The original was posted on /r/homeassistant by /u/PoisonWaffle3 on 2025-03-01 22:45:28+00:00.


The Reolink doorbells (particularly the PoE ones) are almost perfect, but the main thing they're missing is a way to trigger our existing mechanical chimes. I'm personally not a huge fan of the little plug in chime that they provide.

I've mentioned my setup/solution around here a few times and I very frequently get questions about it, so I thought I'd put together a guide. This guide will be mainly applicable to doorbells based in the USA (as I'm from the USA and familiar with doorbell wiring here), but may or may not be applicable to doorbells elsewhere, as I'm not familiar with how they're wired outside of the US.

The automation is fairly simple:

-Trigger: Reolink Doorbell 'visitor' button is pressed

-Action: Close a smart relay for ~100ms to apply power to your doorbell chime

There are multiple ways to wire this, and multiple types of relays that will work fine. I personally chose to use an old school Shelly1 that I had lying around that was flashed with ESPHome, but a Shelly 1 Mini Gen 3 (or a Shelly 1PM Mini Gen 3, if you choose to switch the mains power) would be perfect.

First, you'll want to scope out how your doorbell/doorbells is/are wired. In my case, things are laid out like this:

Doorbell transformer -> doorbell -> chime 1 -> chime 2

I've also seen layouts like this (the two tones are usually separate chimes but inside the same physical casing):

/--- doorbell 1 -> chime tone 1

Doorbell transformer <

\--- doorbell 2 -> chime tone 2

Depending how things are laid out and your comfort level with wiring, you may have a few different options for wiring in the relay(s):

Wiring Option 1 (how I personally did mine), best for a single doorbell: Use the relay to switch the doorbell transformer itself off and on. With this option you'll need to close the doorbell circuit with a Wago or wire nut so that the chime is triggered when the relay closes. Since Shelly relays (and most smart relays in general) can be powered by 120V or 240V mains voltage, you can install the Shelly relay inside the electrical junction box that feeds the doorbell transformer, and everything can be easily kept safe and up to code.

Note the wago connecting the two doorbell wires, closing the circuit

Here's how I did the wiring at my doorbell transformer. Hot and neutral come from the center of the junction box (note the black circle) and go directly into wagos. Since this is an original Shelly 1 that's able to be powered by one source but switch another, we need to feed the black (hot/live 120V) into both the L (live power in) and I (switched input). (Note that it kind of looks like there's something connected to the SW switch input terminal on the Shelly, but there is not. That goes to the outlet that mounts to the front of the junction box.) The neutral also goes directly into a wago, then splits to go to the N (neutral) on the Shelly, to the outlet, and to the doorbell transformer.

Wiring Option 2: Leave the doorbell transformer powered at all times, and use the relay(s) to close the doorbell circuit(s). If you have two doorbells and want the two different chime tones this will be your best option, though finding locations to place and power the relays may be interesting.

You'll want to use two separate relays (a pair of original Shelly 1, for example), NOT a single Shelly 2PM or 2.5. The issue is that you generally can't drive these relays with the output power from the doorbell transformer, so you'll need to power them with 12V DC (you should get one that supports DC), and then have the relays switch the power from the doorbell transformer. The dual-relay Shelly's are designed to be powered from the power source that they're also switching, so they won't work here. Note that it's against code to mix mains power and DC inside of a junction box, so you really should use a 12V DC power adapter (that plugs into an outlet) and power your relays with 12V DC so it can all safely live outside of a junction box.

Wiring layouts are going to vary quite a bit on dual-doorbell setups, so you'll have to familiarize yourself with how yours is laid out and find a relay/powering layout that works for your situation.

The Automation: Depending on what kind of relays you use and what firmware they're running, you have a few options.

Automation Option 1: I already had ESPHome installed on my relay, so I used that to create a 'button' entity that closes the relay for 100ms when triggered. I have the automation 'press' the button to close the relay and apply power to the doorbell transformer for 100ms.

Automation Option 2: If you aren't interested in running ESPHome, you can set up your Shelly relay should appear as a switch in HomeAssistant. You can configure your automation to turn the switch on, wait 100ms, then turn the switch back off.

Of course you can always add additional actions, like sending a notification with a picture to your phone, or pushing a video feed from the doorbell to a wall mounted tablet, but I included the basics in the above screenshots.

I'm sure there are plenty of unusual doorbell wiring setups, so this isn't meant to be an exhaustive guide. If you run into any issues feel free to do some research on general doorbell wiring/layout, as it may help you understand how yours is wired. The wiring in my own house was fairly straightforward, but it was a complete mess at my parents house (I wired in a different smart doorbell for them as well).

I may or may not be able to help with questions on individual setups, but feel free to chime in here if you do have any questions.

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

The original was posted on /r/homeassistant by /u/Honest_Gypsy on 2025-03-02 01:01:45+00:00.

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

The original was posted on /r/homeassistant by /u/Safe_Net_613 on 2025-03-01 23:21:12+00:00.

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

The original was posted on /r/homeassistant by /u/Oguinjr on 2025-03-01 21:50:50+00:00.

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

The original was posted on /r/homeassistant by /u/FloridaBlueberry954 on 2025-03-01 18:05:37+00:00.


After a month of having a ZigBee button beside my bed to turned off the lights (or set a mood), I decided I needed more buttons in my life. Now I have the buttons, and programmed some of the functions, but have a few spare slots and wondered what everyone else triggered with their buttons?

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

The original was posted on /r/homeassistant by /u/Electronic_Tap_3625 on 2025-03-01 15:01:42+00:00.


Hey everyone, I have been fighting with the RATGDO and UNFI access, and I finally got it to work, so I wanted to share the knowledge with a simple how-to.

The issue I ran into was the RATGDO has 2 inputs. One to close the door and one to open it. The UniFi access one has one output to unlock a door. Sure I could come up with some relay logic to make this all work but with home assistant, I can make it open the door if closed, close the door if open and stop the door if moving any time a door unlock signal is received by UniFi access. This is all done without having to pull any wires from the UniFi access controller to the RATGDO.

Here is how to make it work:

  1. Generate an API key in unifi access. Make sure you set webhooks to edit. When you click Create, the API key is displayed. Make sure you copy the key now, as it will not be shown again.
  1. In open HomeAssistant, create an automation where the When is set to WebHook

  2. Configure the webhook to allow GET access. I found it would not work unless I unchecked the only accessible from the local network option. Then, click the copy button next to the ID. Paste that somewhere, as you will need it later. In my example, the URL looks like:

Now, save your Automation, as we will be making changes to it later.

  1. Instruct the Unifi Access controller to send the webhook to HomeAssistant when door access is triggered. I used Postman in my example, but you can use whatever you want to send the request to the Unifi Controller. For Postman, install the Postman agent since we will need the request to go to the local network.

For the request, set the type to POST and the URL to: https://{your Unifi Controller IP}:12445/api/v1/developer/webhooks/endpoints for authentication, set the type to bearer token and paste the API key generated in step 1 into the box.

  1. Construct the body of the request as follows:

{

"name": "subscription events",

"endpoint": "The URL you copyied from home assistant in step 3",

"events": [

"access.door.unlock"

],

"headers": {

"key": "value"

}

}

  1. Send the request and look at the reply. It should look like the following:

  2. Every time a UniFi access door event occurs, it will trigger the event we created in HomeAssistant. Next, we must configure the event to only respond to access-granted events and restrict the event to only the doors you have if you have more than one reader. Here is an example JSON payload sent by the UDM that we can parse:

#access.door.unlock { "event": "access.door.unlock", "event_object_id": "4a98adf6-dbb8-4312-9b8b-593f6eba8c8e", "data": { "location": { "id": "d2b87427-7efa-43c1-aa52-b00d40d99ecf", "location_type": "door", "name": "Door 3855", "up_id": "62ff3aa1-ae96-4b6b-8eb5-44aadfd4aabd", "extras": { "door_thumbnail": "/preview/reader_0418d6a2bb7a_d2b87427-7efa43c1-aa52-b00d40d99ecf_1722913291.jpg", "door_thumbnail_last_update": 1722913291, "uah-input_state_dps": "on", "uah-wiring_state_dps-neg": "on", "uah-wiring_state_dps-pos": "on" }, "device_ids": null }, "device": { "name": "UA-HUB-3855", "alias": "Door 3855", "id": "7483c2773855", "ip": "192.168.1.132", "mac": "", "online": false, "device_type": "UAH", "connected_hub_id": "", "location_id": "d2b87427-7efa-43c1-aa52-b00d40d99ecf", "firmware": "v4.6.1.0", "version": "v4.6.129", "guid": "4a5e238f-4bae-48d5-84d7-dd2b0e919ab5", "start_time": 1721988528, "hw_type": "", "revision": "1722912520784126005", "cap": null }, "actor": { "id": "d62e92fd-91aa-44c2-9b36-6d674a4b74d0", "name": "Hon***", "type": "user" }, 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 "object": { "authentication_type": "CALL", //Door opening method, NFC/PIN_CODE/Call For a DoorBell "authentication_value": "", "policy_id": "", "policy_name": "", "reader_id": "", "result": "Access Granted" } } }

In my example, I only have one reader so all that I care about right now is if access was granted. We could add a AND option to also check to see if other attributes match for example, device.name and match it to the hub name.

Next, we want to instruct the RATGDO to operate the door depending on the current state.

If the door is closed or closing, we want to open it:

If the door is open, we want to close it:

If the door is opening, we want to stop it.

Let me know if you have any questions and I will be happy to help!

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

The original was posted on /r/homeassistant by /u/BrightonBummer on 2025-03-01 13:48:13+00:00.


Something a little much I know but we all go too far with homeassistant sometimes, especially for a cheap price.

Bluetooth beacons

bluetooth relay(via wifi)

Once the hardware arrives you can pretty much 1 click install the bluetooth relay here:

Once that's done it will pick up in home assistant.

Now turn on the bluetooth beacons, they should show up pretty quick in home assistant too as bluetooth devices.

I named my blue bin and black bin, attached them to each bin.

I created a 'bin' calendar with an event every 2 weeks for the black bin and event every 2 weeksfor the blue bin then I can create automations from there.

alias: Blue Bin Reminder  # The name of the automation

description: ""  # No description provided

triggers:
  - at: "00:01:00"  # Triggers at 12:01 AM
    trigger: time
  - at: "06:15:00"  # Triggers at 6:15 AM
    trigger: time
  - at: "08:00:00"  # Triggers at 8:00 AM
    trigger: time
  - at: "09:00:00"  # Triggers at 9:00 AM
    trigger: time

conditions:
  - condition: state  # Ensures the bin calendar event is active
    entity_id: calendar.bins
    state: "on"

  - condition: state  # Ensures the event message matches 'Blue Bin'
    entity_id: calendar.bins
    attribute: message
    state: Blue Bin

  - condition: numeric_state  # Ensures the bin is within 20 meters (assumed to be estimated distance)
    entity_id: sensor.blue_bin_estimated_distance
    below: 20

actions:
  - choose:
      - conditions:
          - condition: state  # Checks if the specific iPhone is at home
            entity_id: device_tracker.xxx_iphone
            state: home
        sequence:
          - data:
              title: Blue Bin needs putting out  # Notification title
              message: Please  # Notification message
              data:
                image: >-  # Image of the blue bin for the notification
                  https://remotelinkhere.ui.nabu.casa/local/bluebin.png
            action: notify.mobile_app_xxx_iphone  # Sends a notification to the mobile app
    alias: Notify xxx if Home  # Descriptive alias for this action

I've added annotations to the automation so each step is explained.

You can also set up buttons on any wall tablets etc to show either distance/or flash a colour based on if the bin is in or out. Here is the card I have set up:

type: horizontal-stack
cards:
  - type: custom:button-card
    entity: sensor.black_bin_estimated_distance
    show_name: false
    size: 50px
    color_type: card
    show_state: true
    show_icon: true
    icon: mdi:trash-can
    state_display: |
      [[[ 
        if (entity.state <= 20) return "In"; 
        if (entity.state >= 20) return "Out"; 
        return "Optimal";
      ]]]
    show_last_changed: null
    styles:
      icon:
        - color: black
    state:
      - operator: <=
        value: 20
        color: transparent
      - operator: ">="
        value: 20
        color: green
      - operator: default
        color: grey
  - type: custom:button-card
    entity: sensor.blue_bin_estimated_distance
    show_name: false
    size: 50px
    color_type: card
    show_state: true
    show_icon: true
    icon: mdi:trash-can
    state_display: |
      [[[ 
        if (entity.state <= 20) return "In"; 
        if (entity.state >= 20) return "Out"; 
        return "Optimal";
      ]]]
    show_last_changed: null
    styles:
      icon:
        - color: blue
    state:
      - operator: <=
        value: 20
        color: transparent
      - operator: ">="
        value: 20
        color: green
      - operator: default
        color: grey
grid_options:
  columns: full

They turn green when the bin is out, which is usually on the day they are being collected.

Just thought I'd post this if any others want to give it a try and arent aware of how cheap it can be.

Things worth mentioning:

The distance given by the beacons isnt really accurate but it only takes a couple of days to calibrate when its near the home vs further away.

Try placing the BT proxy as close to the bins as you can, will make it more accurate to changes.

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

The original was posted on /r/homeassistant by /u/ElectricZ on 2025-03-01 13:42:16+00:00.

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

The original was posted on /r/homeassistant by /u/jlnbln on 2025-02-28 23:29:06+00:00.


I recently got my first two Voice PE and actually replaced all my echo devices (with the help of some Wyoming satellites for now).

Now I need your help! Hit me with your best custom sentence voice automations! I need inspiration what I can set up!

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

The original was posted on /r/homeassistant by /u/Proud_Pumpkin_8370 on 2025-03-01 05:36:40+00:00.


Hey everyone! 👋

I've built YNAB Custom, a YNAB (You Need a Budget) integration for Home Assistant, now available as a custom HACS integration! 🎉

🔹 Features:

  • Accounts & Balances – Track your YNAB account balances in Home Assistant.
  • Budget Categories – Monitor assigned, activity, and available amounts for each category.
  • Category Group Summaries – View total spending, assignments, and balances for grouped categories (e.g., "Bills," "Groceries").
  • API Status Sensor – Keep an eye on YNAB’s API health to detect any sync issues.
  • Configurable Update Intervals – Customize how often each budget updates.
  • Manual Refresh Service (ynab_custom.refresh) – Update data on demand.
  • ✨ UI-Based Setup & Configuration – No YAML required! Set up and manage your integration directly in Home Assistant’s UI.

📌 How It Works:

Each YNAB budget is treated as a device, with sensors for accounts, categories, category group summaries, and API status grouped under it. This keeps things neat and organized while allowing granular control over budget tracking.

🔧 Installation:

  1. In HACS, go to Integrations → Click the three dotsCustom repositories.
  2. Add the repository: https://github.com/DeLuca21/hacs-ynab
  3. Set category to Integration and click Add.
  4. Search for YNAB Custom in HACS, install it, and restart Home Assistant.
  5. Go to Settings → Devices & Services → Add Integration, search for YNAB Custom, and enter your YNAB API key.
  6. The integration will automatically create sensors for your YNAB accounts, budget categories, and summaries!

🎛 UI-Based Configuration:

  • Once installed, you can manage YNAB Custom directly in the Home Assistant UI.
  • Change update intervals, manage API keys, and configure settings without touching YAML.
  • Use the "Configure" button in Home Assistant’s Integrations page to update settings anytime.

🔑 How to Get Your YNAB API Key:

  1. Go to YNAB Developer Portal.
  2. Click "New Access Token" and give it a name.
  3. Copy the generated token (it won't be shown again).
  4. Paste it into Home Assistant when setting up the integration.

Would love to hear feedback, ideas, or if anyone wants to help test! Let me know what you think. 🙌

👉 GitHub: hacs-ynab

Buy Me a Coffee

💙 Support me on Ko-fi

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

The original was posted on /r/homeassistant by /u/brinkre on 2025-02-28 22:47:40+00:00.


I can now control my infrared tea lights from Home Assistant with a Zigbee infrared receiver/transmitter.

This device can clone infrared signals from an original remote and this signal can be send again with this box via an automation.

Automate a romantic candle light ambiance. (Eventually my wife didn't get so excited from it as I did! I don't know why :)

See my Automate infrared devices in Home Assistant blog post how I did this.

You find there also a clip from this feature in action!

Automate infrared tea light in Home Assistant

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

The original was posted on /r/homeassistant by /u/4reddityo on 2025-02-28 20:03:00+00:00.

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

The original was posted on /r/homeassistant by /u/netixc1 on 2025-02-28 19:18:42+00:00.


I’ve integrated an open-source LLM with my Home Assistant setup and am curious what models others are using. What have you found works best for handling smart home commands?

Are there any models you’ve had particularly good or bad experiences with? Any recommendations for ones that understand natural language commands well?

Looking forward to your insights!

Update: for those who want to know my current setup

I have a Proxmox server with an LXC container running Docker. Inside, I have the following installed:

Text-to-Speech (TTS)

Kokoro-FastAPI – used for TTS.

  • Model: Kokoro
  • Voices: af_bella or a combination of af_bella+af_heart

Speech-to-Text (STT)

Speaches – used for STT.

  • Model: Systran/faster-whisper-medium

Local LLM

Ollama – used for running a local LLM.

  • Current model: qwen2.5coder-32B

Home Assistant Integration

Installed via HACS:

Home Assistant Configuration

Add the following to configuration.yaml:

yamlCopyEditstt:
  - platform: openai_stt
    api_key: YOUR_API_KEY
    # Optional parameters
    api_url: https://192.168.xx.xx:8000/v1
    model: Systran/faster-whisper-medium
    prompt: ""
    temperature: 0

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

The original was posted on /r/homeassistant by /u/Vivid_Ad_8206 on 2025-02-28 15:59:08+00:00.


Hey everyone,

I'm looking for ideas on how to integrate notifications into my Home Assistant dashboard without making it overly complex. Things like low battery alerts, upcoming trash collection etc

I’m using Bubble Cards, so I’d love to keep things visually clean while still being functional. What’s your approach? Do you use conditional cards, template sensors, custom pop-ups, or something else? How you organized things?

If you’ve got screenshots of your setup, I’d love to see how it looks! Trying to find a good balance between useful and not overcomplicate things.

Looking forward to your ideas!

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

The original was posted on /r/homeassistant by /u/maxi1134 on 2025-02-28 14:52:57+00:00.


I needed a script to enable my LLM to start Plex media playback on my Chromecasts.

After a few trials and errors. It seems to be working properly for a week now.

You should be able to adapt the 'player_data' template to pull the right entities.

In this case, it looks for chromecast since all my TVs entities end with that such as media_player.bedroom_chromecast

It is located under the variable declaration

variables:
  player_data:
    {% if media_player %} 
    {{integration_entities('cast') 
     | expand
     | selectattr('entity_id', 'search', 'chromecast')
     | selectattr('entity_id', 'search', media_player.split(' ') | first | lower)
     | map(attribute='entity_id') | list }}     
    {% elif area %} 
    {{ integration_entities('cast') 
     | expand
     | selectattr('entity_id', 'search', 'chromecast')
     | selectattr('entity_id', 'search', area.split(' ') | first | lower)
     | map(attribute='entity_id') | list }} 
    {% endif %}

Here is the complete script YAML

No more fumbling on your phone, now you can just ask your Assist endpoints!

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

The original was posted on /r/homeassistant by /u/augury_thorium on 2025-02-28 15:02:00+00:00.

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

The original was posted on /r/homeassistant by /u/Neat-Initiative-6965 on 2025-02-28 09:14:29+00:00.


I just had to share this with people who would understand: the small perks of being a nerd.

I was just at a university library where you could use the scanner/copier for free as a visitor. This however required you to input a long username and password into the machine. Quite cumbersome. You could also scan your library card, linked to your account, but then you had to pay for library membership.

The scanner/copier asked whether I wanted to link a library card and I thought -- hey, I happen to have an empty NFC card in my bag, would that work? It sure did! Love this hobby :-P

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

The original was posted on /r/homeassistant by /u/Throwmeoutl8tr on 2025-02-28 08:33:08+00:00.

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

The original was posted on /r/homeassistant by /u/Tallyessin on 2025-02-28 02:55:29+00:00.

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

The original was posted on /r/homeassistant by /u/ElementZoom on 2025-02-28 01:36:08+00:00.

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

The original was posted on /r/homeassistant by /u/gtwizzy8 on 2025-02-28 00:05:31+00:00.

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

The original was posted on /r/homeassistant by /u/Big_Hovercraft_7494 on 2025-02-27 19:59:28+00:00.


Well, I got my first Home Assistant Voice Preview Edition this week. I finally had a chance to set it up this morning. I have to admit, I'm very impressed with this thing.

I've spent some of my morning setting up new automations using sentences...you know, things I do all the time in the app...every single one has worked flawlessly.

This just might finally let me get rid of my Google Home Assistant spying devices!

Thanks Nabu! You've all done amazing work on the Home Assistant eco system.

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

The original was posted on /r/homeassistant by /u/missyquarry on 2025-02-27 18:00:56+00:00.

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

The original was posted on /r/homeassistant by /u/n0c1_ on 2025-02-27 17:37:14+00:00.

view more: ‹ prev next ›