Home Assistant

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

The original was posted on /r/homeassistant by /u/mvoska on 2025-03-16 18:44:53+00:00.


Looks like I'm the second one who took this weekend to build a Home Assistant MCP server

I wanted to expose my Home Assistant instance to Claude Code / Cursor so when I was editing my home assistant config folder, it had the context of my entities, devices, etc.

Why build a new MCP server?

  1. I couldn't get the built in MCP server working (via MCP Proxy or from running the inspector)
  2. I thought it would be more reliable by connecting directly to the HASS API instead of going through the assist flow.
  3. None of the existing MCP servers I could find worked.

Overview:

  • Entity Management: Get states, control devices, and search for entities
  • Domain Summaries: Get high-level information about entity types
  • Automation Support: List and control automations
  • Guided Conversations: Use prompts for common tasks like creating automations
  • Smart Search: Find entities by name, type, or state
  • Token Efficiency: Lean JSON responses to minimize token usage

Tools

  • get_version: Get the Home Assistant version
  • get_entity: Get the state of a specific entity
  • entity_action: Perform actions on entities (turn on, off, toggle)
  • list_entities: Get a list of entities with optional filtering
  • search_entities_tool: Search for entities matching a query
  • domain_summary_tool: Get a summary of a domain's entities
  • list_automations: Get a list of all automations
  • call_service_tool: Call any Home Assistant service
  • restart_ha: Restart Home Assistant
  • get_history: Get the state history of an entity
  • get_error_log: Get the Home Assistant error log

Prompts

  • create_automation: Guide for creating Home Assistant automations
  • debug_automation: Troubleshooting help for automations that aren't working
  • troubleshoot_entity: Diagnose issues with entities

MIT License, so feel free to fork/improve. Happy to take feedback as well.

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

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

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

The original was posted on /r/homeassistant by /u/General_crypto on 2025-03-16 19:21:23+00:00.

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

The original was posted on /r/homeassistant by /u/Abdnadir on 2025-03-16 17:56:11+00:00.

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

The original was posted on /r/homeassistant by /u/accommodated on 2025-03-16 10:32:59+00:00.


Scroll down to the video, at 0:40 Home Assistant compatibility is advertised.

Amazing to see this. It's not just a note hidden somewhere in the specs — it's in their main marketing video. Like many others in this sub, I'm a happy owner of a bunch of Shelly products, and they work very well with Home Assistant.

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

The original was posted on /r/homeassistant by /u/Full-Specific7333 on 2025-03-16 04:52:00+00:00.


I put together a Home Assistant MCP server to use in Cursor. While MCP was included in one of the last Home Assistant OS releases, this project is meant to be used outside of Home Assistant—so you can integrate it with other applications, AI assistants, or whatever else you're working on.

Right now, it supports:

  • Searching for entities in Home Assistant
  • Controlling devices (turning things on/off, etc.)

It’s lightweight and easy to set up—just needs Python 3.11+, a Home Assistant API, and a long-lived access token. If you’re looking for a way to interact with Home Assistant from an external app, this might be useful. Let me know if you have any thoughts or ideas for improvements! 🚀

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

The original was posted on /r/homeassistant by /u/anarchyx34 on 2025-03-16 00:27:06+00:00.


Last night I used HA in a somewhat unconventional way. I was about an hour from home and was going to end up going home very late. Usually my cat gets wet food in the evening, but I figured no problem I'll just give him a snack from his Tuya-powered feeder. It's not directly connected to HA (except for via the Tuya cloud integration) so I just use the SmartLife app when I need to manually feed.

Of course, tonight of all nights it wasn't working. It tries to connect and then reports that it's offline. WTF. I log into HA and see in the Tuya integration that the feeder is going online and unavailable every 4 seconds. Something is wrong with it and it probably needs a reboot. Well how the hell am I going to do that?

The only way inside my network from outside that I could think of is through the HA terminal. So I used that (on my iPad no less) to SSH into my router, where I had to find the DHCP lease table in order to figure out what the feeder's IP address is, and from there I was able to telnet into the feeder (SSH inception at this point) and type "reboot".

It worked and my cat didn't go hungry.

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

The original was posted on /r/homeassistant by /u/isrararrafi on 2025-03-15 20:35:26+00:00.

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

The original was posted on /r/homeassistant by /u/Economy-Case-7285 on 2025-03-15 19:25:17+00:00.

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

The original was posted on /r/homeassistant by /u/JUST1CE4ALL on 2025-03-15 17:41:54+00:00.

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

The original was posted on /r/homeassistant by /u/NRG1975 on 2025-03-15 15:31:16+00:00.


I am interested to see what you folks have going , or have done.

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

The original was posted on /r/homeassistant by /u/red1q7 on 2025-03-15 12:52:54+00:00.


I stumbled over home assistant a while ago and have it running on a server as a HyperV VM. It does some things but it feels limited…. Do I need to run it on a physical device with BT, Zigbee USB Dongle etc to unlock its full potential or can it manage with various bridges? I mostly dabble within the apple universe, but also got an Aqara and a Hama Bridge to include the Z universe.

Thx!

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

The original was posted on /r/homeassistant by /u/Remote_Boy on 2025-03-15 09:27:08+00:00.

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

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

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

The original was posted on /r/homeassistant by /u/Mezza1989 on 2025-03-14 21:31:24+00:00.

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

The original was posted on /r/homeassistant by /u/maxi1134 on 2025-03-14 23:00:40+00:00.

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

The original was posted on /r/homeassistant by /u/able645 on 2025-03-14 16:03:26+00:00.


Just bought a house like the title says. I have looked at alot of smart home stuff and chosen home assist. That being said it seems both extremely flexible and extremely complex. Was hoping for advice on a few things.

  1. Must haves

    • things I need to have to make it work
  2. Things I will want

    • not "required" but I will want it soon, if not right away
  3. Product for outdoor smart lights (like permanent Christmas lights)

  4. Best smart lightbulbs for inside the house

  5. And can I use my google Chromecast with the remote for each tv

  6. Security system and cams

    • I would like one that I can monitor, but I don't want to pay a monthly fee to keep it running

And any other advice you guys might think is useful for someone starting out.

Thanks in advance!

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

The original was posted on /r/homeassistant by /u/Apple2T4ch on 2025-03-14 16:57:57+00:00.

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

The original was posted on /r/homeassistant by /u/Initial-Influence-22 on 2025-03-14 15:08:55+00:00.

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

The original was posted on /r/homeassistant by /u/dirtybirds09 on 2025-03-14 11:04:04+00:00.


BLUF: I have a pretty big household (5 kids) and ADHD runs rampant and more common than a first name. What are some automations that you have found to be super useful in helping your kids with the day to day.

And in the words of smarthomesolver: had high spouse approval

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

The original was posted on /r/homeassistant by /u/sysvival on 2025-03-14 10:47:57+00:00.


Made a home assistant powered this is fine meme using an esp32-c3 supermini which by pure luck fits perfectly inside this thing.

It is wired in a way that the button on the back still works and runs off the batteries, but once you feed it power via the USB-C port, the esp32 makes it smart.

My plan is to integrate it into our ticket system at work. Whenever there is a P1, this is fine lights up.

Github code here:

Video of home assistant activation here;

Local API command for activation: curl -X POST

remove the black pads to get access to the screws

esp32-c3 supermini will fit perfectly on the left of the main board

cut a hole in a box

stuck a cable in the box

final product

the esp config has the web server enabled so you can activate it using the local API (standard curl stuff)

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

The original was posted on /r/homeassistant by /u/dmbymdt on 2025-03-14 01:37:09+00:00.


Made a few updates to HACS and Integrations and am always nervous what the logs will look like. Always a happy moment when after the restart I see this.

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

The original was posted on /r/homeassistant by /u/t0m1o1 on 2025-03-13 18:07:36+00:00.


Quick and dirty modded airfreshner to let me control it from HA. ESP32C3 and a MOSFET. MOSFET grounds the "boost" button for 0.5 seconds when activated causing it to spray. All fits back in the original case and is currently running from the 2 AA batteries inside which is suboptimal - it browns out when activated and rough calculations say it'll probably only last a week on fresh batteries. Probably be running the ESP from usb going forward.

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

The original was posted on /r/homeassistant by /u/Individual_Cod_4726 on 2025-03-14 05:30:46+00:00.

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

The original was posted on /r/homeassistant by /u/Initial-Influence-22 on 2025-03-13 23:14:49+00:00.


I moved to VoicePE since it was release and replaced it with my Alexa.

One feature, that I missed instantly, is the possibility to play any song from Spotify on any speaker using my voice.

Hence, I came up with a couple of scripts to do it on my own and I thought this is worth sharing with you. (Spoiler: It does not require Music Assistant)

The idea is to use a custom sentence in HA that goes like: "Play in ".

To do that, first of all a Spotify DEV account and a client ID + secret must be created.

ID and secret must be stored base64 converted in the secrets.yaml in HA.

It is important to encode it like that "ClientID:Secret".

Now, two REST commands must be created in the configuration.yaml in HA.

The first one is used to get the access token and the second one is used for the actual search.

rest_command:
  access_spotify:
    url: https://accounts.spotify.com/api/token
    method: POST
    headers:
      authorization: !secret spotify_token
    content_type:  'application/x-www-form-urlencoded'
    payload: "grant_type=client_credentials"
  find_spotify:
    url: https://api.spotify.com/v1/search?q=%7B%7Bsearch_string%7D%7D&amp%3Btype=track&amp%3Blimit=1&amp%3Boffset=0
    method: GET
    headers:
      authorization: "Bearer {{token}}"
    content_type:  'application/json; charset=utf-8'

This can now be used in the custom sentence automation (German):

triggers:
  - trigger: conversation
    command: Spiele {search_track} [im|in|auf] {room}
    alias: Spotify
    id: Spotify
actions:
  - alias: Access
    action: rest_command.access_spotify
    response_variable: access_result
    data: {}
  - alias: Search
    action: rest_command.find_spotify
    data:
      token: "{{ access_result['content']['access_token'] }}"
      search_string: "{{ trigger.slots.search_track }}"
    response_variable: spotify_result
  - alias: Play
    if:
      - condition: template
        value_template: "{{ spotify_result['status'] == 200 }}"
    then:
      - alias: Parse data
        variables:
          url: spotify_result['content']['tracks']['items'][0]['external_urls']['spotify']
          track: spotify_result['content']['tracks']['items'][0]['artists'][0]['name']
          artist: spotify_result['content']['tracks']['items'][0]['artists'][0]['name']
          player: >-
            {% if trigger.slots.room == 'büro' %} media_player.buro
            {% elif trigger.slots.room == 'wohnzimmer' %} media_player.wohnzimmer
            {% elif trigger.slots.room == 'schlafzimmer' %} media_player.schlafzimmer
            {% else %} error {% endif %}
          error: "{{ spotify_result|length < 0 }}"
  - alias: Check and Play
    if:
      - condition: or
        conditions:
          - condition: template
            value_template: "{{ error }}"
          - condition: template
            value_template: "{{ player == 'error' }}"
    then:
      - set_conversation_response: Keine Titel oder Player gefunden
    else:
      - set_conversation_response: Spiele {{ track }} von {{ artist }} auf {{ trigger.slots.room }}
      - action: media_player.play_media
        metadata: {}
        target:
          entity_id: "{{ player }}"
        data:
          media_content_id: "{{ url }}"
          media_content_type: music

Now go ahead and roast me for this complicated (but working!) setup 😊

view more: ‹ prev next ›