Home Assistant

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

The original was posted on /r/homeassistant by /u/atomicbiscuit on 2024-10-09 22:45:33+00:00.


Just set one up in my bathroom to control media. works instantly

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

The original was posted on /r/homeassistant by /u/BomarJr on 2024-10-09 19:38:57+00:00.

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

The original was posted on /r/homeassistant by /u/xx4h on 2024-10-09 15:16:32+00:00.


I've created a tool to control my Home Assistant devices from the command line.

As i'm spending a lot of time on the command line, i was looking for a tool to easily turn on/off or toggle lights and switches, as well as play a short audio on a media player.

It seemed, that other CLI tools i found were not really focused on controlling devices, but on configuring Home Assistant. So i created a tool for myself: hctl

Features

  • Support for Home Assistant
  • Play local and remote music files
  • List all Domains & Domain-Services
  • Turn on/off, or toggle all capable devices
  • Completion for bash, zsh, fish and powershell, auto completing all capable devices
  • Control over short and long names
  • Fuzzy matching your devices so you can keep it short

If you want to check out the project more in detail or even try it out yourself:

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

The original was posted on /r/homeassistant by /u/PhobicCarrot on 2024-10-09 11:59:38+00:00.


What is the favorite automation you have used in Home Assistant?

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

The original was posted on /r/homeassistant by /u/WolfInABox on 2024-10-09 06:32:36+00:00.

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

The original was posted on /r/homeassistant by /u/LordWolke on 2024-10-08 23:05:17+00:00.

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

The original was posted on /r/homeassistant by /u/szymucha94 on 2024-10-08 14:28:28+00:00.

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

The original was posted on /r/homeassistant by /u/kevbodavidson on 2024-10-09 02:42:18+00:00.


https://www.merklemap.com/search?query=\*ui.nabu.casa&page=1.

Make sure you have OTP installed, as this seems like a security risk I never thought of since the domains are so random in characters. I imagine brute force attacks could be launched on everyone of these domains. Also crazy to see over 200k people use Nabu Casa.

Might be worth adding this to your config as well

http:

ip_ban_enabled: true

login_attempts_threshold: 5

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

The original was posted on /r/homeassistant by /u/bwente on 2024-10-08 23:42:04+00:00.


Do you do this too? I look for devices that have good integrations for HA.

I looking at a Roborock vacuum and a Reolink doorbell currently.

I have bought LED light bulbs that have wled and a Levoit air purifier because of how easy it is to add.

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

The original was posted on /r/homeassistant by /u/kard87 on 2024-10-08 16:50:14+00:00.


I wanted to share an automation I've been working on:

Problem:

I have an Ecobee thermostat and wanted to adjust heating and cooling linearly based on how far the nearest household member is. My home is stone masonry and has a lot of thermal mass, so if I've been away for a while it can take 90+ minutes to get to the target temp, thus I want my HVAC to kick on as soon as I land at the airport for example (10 mi away). Originally, I had several zones set up but it was clunky so I wanted something cleaner.

Desired Behavior:

When the nearest household member is 10 miles away, the thermostat will fully be in its "away" mode (62-87). The thermostat will adjust linearly as I get closer till it's at the target home temps (70-73). Further, I want to set the HVAC mode based on outdoor temperature: if it's over 70 degrees set it to cool, under 50 set it to heat, in-between set it to auto heat_cool with a range of 69-74 (Ecobee minimum differential for the heat_cool mode is 5 degrees).

Prerequisite:

I use the Proximity integration and based everything on the nearest device, this is not needed if you live alone. Further, you need a way to get the outdoor temperature (I'm using Pirate Weather since I don't have a physical sensor but that would probably be a better way). You can also ignore the "season" aspect to simplify it and just leave it on auto heat_cool mode.

Solution:

First I created some Template Sensors to tell me:

  1. the current "season" (summer if over 70, winter if under 50, transition if in-between),
  2. the target heating temperature, and
  3. the target cooling temperature.

I created a sensors.yaml file with the following and put template: !include sensors.yaml in my config.yaml:

- sensor:
  - name: "Current Season"
    unique_id: current_season
    state: >
      {% set outdoor_temp = state_attr('weather.pirateweather', 'temperature')|float %}
      {% if outdoor_temp < 50 %}
        'winter'
      {% elif outdoor_temp > 70 %}
        'summer'
      {% else %}
        'transition'
      {% endif %}
  - name: "Desired Heating Temperature"
    unit_of_measurement: "°F"
    unique_id: sensor.desired_heating_temperature
    state: >
      {% if state_attr('weather.pirateweather', 'temperature')|float < 50 %}
        {% set min_heat_temp = 62 %}
        {% set max_heat_temp = 70 %}
      {% else %}
        {% set min_heat_temp = 62 %}
        {% set max_heat_temp = 69 %}
      {% endif %}
      {% set max_distance = 50000 %}
      {% set distance = states('sensor.home_nearest_distance')|float %}
      {% if distance > max_distance %}
        {{ min_heat_temp }}
      {% else %}
        {{ ((max_heat_temp - min_heat_temp) * (1 - (distance / max_distance)) + min_heat_temp)|round(0) }}
      {% endif %}
  - name: "Desired Cooling Temperature"
    unit_of_measurement: "°F"
    unique_id: sensor.desired_cooling_temperature
    state: >
      {% if state_attr('weather.pirateweather', 'temperature')|float > 70 %}
        {% set min_cool_temp = 73 %}
        {% set max_cool_temp = 87 %}
      {% else %}
        {% set min_cool_temp = 74 %}
        {% set max_cool_temp = 87 %}
      {% endif %}
      {% set max_distance = 50000 %}
      {% set distance = states('sensor.home_nearest_distance')|float %}
      {% if distance > max_distance %}
        {{ max_cool_temp }}
      {% else %}
        {{ ((min_cool_temp - max_cool_temp) * (1 - (distance / max_distance)) + max_cool_temp)|round(0) }}
      {% endif %}

I originally tried to use sensor.current_season in my other Template Sensors but it wasn't working, I assume they don't evaluate sequentially but not sure if that was the reason or if I didn't format it correctly. Next, I set up the automation as follows:

alias: Adjust Thermostat on Proximity and Season
triggers:
  - trigger: state
    entity_id:
      - sensor.desired_cooling_temperature
      - sensor.desired_heating_temperature
      - sensor.current_season
conditions:
  - condition: time
    after: "06:00:00"
    before: "23:30:00"
actions:
  - choose:
      - conditions:
          - condition: state
            entity_id: sensor.current_season
            state: "'summer'"
        sequence:
          - delay:
              hours: 0
              minutes: 0
              seconds: 10
              milliseconds: 0
          - action: climate.set_hvac_mode
            data:
              hvac_mode: cool
            target:
              entity_id: climate.thermostat
          - delay:
              hours: 0
              minutes: 0
              seconds: 10
              milliseconds: 0
          - action: climate.set_temperature
            data:
              temperature: "{{ states('sensor.desired_cooling_temperature') | float }}"
            target:
              entity_id: climate.thermostat
      - conditions:
          - condition: state
            entity_id: sensor.current_season
            state: "'winter'"
        sequence:
          - delay:
              hours: 0
              minutes: 0
              seconds: 10
              milliseconds: 0
          - action: climate.set_hvac_mode
            data:
              hvac_mode: heat
            target:
              entity_id: climate.thermostat
          - delay:
              hours: 0
              minutes: 0
              seconds: 10
              milliseconds: 0
          - action: climate.set_temperature
            data:
              temperature: "{{ states('sensor.desired_heating_temperature') | float }}"
            target:
              entity_id: climate.thermostat
      - conditions:
          - condition: state
            entity_id: sensor.current_season
            state: "'transition'"
        sequence:
          - delay:
              hours: 0
              minutes: 0
              seconds: 10
              milliseconds: 0
          - action: climate.set_hvac_mode
            data:
              hvac_mode: heat_cool
            target:
              entity_id: climate.thermostat
          - delay:
              hours: 0
              minutes: 0
              seconds: 10
              milliseconds: 0
          - action: climate.set_temperature
            data:
              target_temp_low: "{{ states('sensor.desired_heating_temperature') | float }}"
              target_temp_high: "{{ states('sensor.desired_cooling_temperature') | float }}"
            target:
              entity_id: climate.thermostat
mode: restart

Few notes about my implementation:

  • I added a time condition as I have another automation to set it to Sleep Mode from 11:30 p.m. till 6 a.m. that I did not want to interfere with.
  • I had to format it state: "'summer'" under the conditions for the actions and no other format worked. I'm assuming I messed up how I defined the current_season sensor so if anyone knows what I did wrong let me know, but the above does work.
  • I originally had 1 action that set the HVAC mode and the temperature in the same step, but I had issues, so I split it as 2 separate actions (first set mode, then temp). I'm using the Homekit Integration for my Ecobee, not sure if it's a bug or not.
  • I set the mode to restart and added some delays as I noticed some race conditions. The automation triggers multiple times quickly when the sensors startup or when it changes seasons, so the delays and letting it restart assures it executes once when all the sensors have settled to the correct state.

I'm still testing but so far it seems to be functioning well, wanted to share with anyone that might be looking to do something similar or if anyone had any thoughts or potential improvements. My plan is to evaluate this for a week and adjust as needed, but hoping this could save someone some time that might be looking for a similar solution.

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

The original was posted on /r/homeassistant by /u/delldoodz on 2024-10-08 14:59:10+00:00.


What is the safest method for remotely accessing my hass instance? Right now I’m using duckdns but is there a more secure method? I don’t love having to port forward for various addons.

I don’t know much about cyber security, but if I can make a change to make this more secure, now is the time for me to do so.

Thanks!

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

The original was posted on /r/homeassistant by /u/crazy4dogs on 2024-10-08 07:31:49+00:00.


Hey everyone! I'm looking for creative ways to integrate notifications or status indicators into my smart home in a way that's unobtrusive and feels more organic.

Instead of building a dashboard and putting an iPad on the wall, I'm interested in ideas like using color LEDs hidden behind a picture frame, subtle light cues, or other solutions that blend in with the environment. For example, I'd love to see at a glance if I've left the garage open if the dog hasn't been let out to the yard in a few hours, when the mail has been delivered, or if the washer is done.

I'm aiming for something persistent and visually noticeable, rather than relying on audio notifications that I might miss if I'm in another room.

What are some interesting or clever ways you've created notifications or status updates in your home that blend in well but are still effective? I'd love to hear what you've done.

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

The original was posted on /r/homeassistant by /u/Dizzy149 on 2024-10-08 02:55:42+00:00.


LOOOOOONG story VERY short, I have an a-hole neighbor that opens our gate to let our dogs out. I put a camera pointing right at the gate, but he hides so all you see is a finger or two or bolt cutters. He already got two of our dogs killed.

The other day I let the puppies out and the gate was open. This time it was my daughter who left it open when she took the trash out. I want a sensor I can put on the gate so I can set it to alert everyone in the house if the gate is open for more than 5min.

I have solid wifi at the gate, but no ability to get any power there. I am fine with swapping batteries as needed. It would need to be weatherproof since it will be outside.

Anyone have any recommendations?

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

The original was posted on /r/homeassistant by /u/Sammyjo201 on 2024-10-07 23:22:43+00:00.

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

The original was posted on /r/homeassistant by /u/SuperAleste on 2024-10-07 20:28:14+00:00.


Really don't want to go 1-by-1 digging through entities for each

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

The original was posted on /r/homeassistant by /u/ApolloAutomation on 2024-10-07 17:52:17+00:00.

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

The original was posted on /r/homeassistant by /u/jvrang on 2024-10-07 11:28:55+00:00.

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

The original was posted on /r/homeassistant by /u/dnsfr on 2024-10-06 15:08:29+00:00.


I used to have a Raspberry Pi 3 with 1GB of RAM as a server, but the RAM started becoming a bottleneck. On top of that, microSD cards kept failing, and it was very slow to boot up.

Like many others, I started considering an N100 as a server, but long story short, it would be too expensive to import one to my country.

So, I ended up with one of those cheap Android TV boxes from Aliexpress. I flashed Debian on it (see debian-on-amlogic), then ran the supervised installer (with a few tweaks).

To be specific, it's an H96 Max S905W2 with 4GB of RAM and 64GB of flash storage.

That was almost a year ago, and I've never had any issues. It runs a bunch of different containers (for MQTT, Zigbee, file browsing, RSS, DDNS, etc.).

I would, of course, choose an N100 over it if the prices were reasonable, but I thought it might be interesting to share this here in case someone is on a tight budget.

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

The original was posted on /r/homeassistant by /u/swake88 on 2024-10-06 19:54:13+00:00.

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

The original was posted on /r/homeassistant by /u/combatwombat007 on 2024-10-06 14:02:03+00:00.


I'm still quite a novice at this stuff. We have a standard crafstman garage door opener with a button on the wired remote to lockout wireless remotes. Want to automate this feature as we are unreliable at doing it ourselves.

Solution can include zwave, zigbee, or wifi. Preference for zwave as it seems most reliable for me and this is a security/safety feature. Off-the-shelf product preferred as well as I don't have the skill or time ATM to homebrew something.

Tried automating the whole opener with a smart switch on a schedule, but that is not ideal and causes frustration for wife and I and safety issue for our kid.

Is there a simple way to put this on a schedule while remaining flexible for exceptions (wired remote button still works, remotes will work if we're out and arrive home late, etc.) without having to interact with a separate button or dashboard or app?

Thanks for any ideas!

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

The original was posted on /r/homeassistant by /u/Icy_Cartographer_134 on 2024-10-06 06:04:09+00:00.


Currently I am thinking of some notifications, if the humidity is above 65 % and humidity outside below current inside humidity value open window. Further I would also like to introduce automatic radiator turn on. Are you guys aware of an blueprints or custom integrations?

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

The original was posted on /r/homeassistant by /u/Ok_Paleontologist974 on 2024-10-06 03:02:39+00:00.

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

The original was posted on /r/homeassistant by /u/jarod_sober_living on 2024-10-06 02:35:42+00:00.


I’ve got a bunch of smart devices that I love, but my Sylvania Smart Bulbs have been frustrating. Picked them up at Dollarama in Canada, and I was pretty hyped to see smart bulbs for $2. But man, they’ve been a pain and honestly not even worth the couple of bucks.

My Hue bulbs? Flawless for years. These Sylvania ones? They fail like 50% of the time. The only thing they’re decent at is remembering their last setting after being turned off, so I use a few in my vivariums where I need blue lights. But let's be real, they’re basically dumb bulbs now.

What’s your most frustrating smart device?

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

The original was posted on /r/homeassistant by /u/brinkre on 2024-10-05 17:32:27+00:00.


On my site I have all kinds of Home Assistant dashboard examples: * HACS integrations * Templates * Styling * Different layouts * And much more...

Find out more at

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

The original was posted on /r/homeassistant by /u/metzma00 on 2024-10-05 11:39:33+00:00.

view more: next ›