homeassistant

12070 readers
4 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 enthusiasts. Perfect to run on a Raspberry Pi or a local server. Available for free at home-assistant.io

founded 1 year ago
MODERATORS
51
 
 

Based on https://github.com/Koenkk/zigbee2mqtt/releases/tag/1.39.1

For the record, this seemingly broke my presence sensors somewhat.

52
 
 

This might be tangential to HomeAssistant but Im currently thinking about a household renovation and one thing I am considering is wiring.

I have some POE devices along with many other that run with a 12v DC supply.

I'm lookin at putting in a relatively straightforward 12v battery UPS with a small solar panel to charge. I probably only have space for 1500W of panels so putting in a whole grid tied solution is overkill. Primarily this is to provide backup as we sometimes lose power.

Networking wise I think I will put RJ45 into each room as we are concrete reinforced construction and so signal quality is an issue.

My query was how feasible it is to run both standard PEO devices and 12v devices (1-2w) all over POE.

I thought the alternative would be to run separate 12v cables with USB connectors at the end into each room as well as Rj45

Is anyone else doing this in their home?

53
 
 

I'm finding it really difficult to tell whether a particular air conditioner is supported by Home Assistant, since all the ones I've seen in stores don't seem compatible. I mean, I'm probably wrong in that, I'm sure that with enough work anything will work, but I didn't see any integrations with Midea air conditioners, for example.

All my windows in my house slide sideways, so most of the in-wall air-conditioners won't work, and I rent the place, so I can't make large alterations. This pretty much limits me to portable ACs, which don't tend to have much smart home functionality.

Any help would be appreciated, as I'm pretty new to using Home Assistant in general, and I'm still trying to figure out how things work. I only bought my Home Assistant Yellow last year, and I don't yet have any smart appliances to connect it to.

54
32
submitted 3 months ago* (last edited 3 months ago) by [email protected] to c/homeassistant
 
 

UPDATE: well, I've belatedly realised I've left out a key piece of information. I need to buy a pair of locks - one for a regular wooden entrance door, and one for a security screen door in front of it.

Turns out hardly anyone (reputable) makes a decent smart lock for screen doors, except the Yale Unity range, but those aren't Z-Wave compatible.

Guess we're sticking with keys for a while longer...


Hey folks - the time's come for me to consider diving into smart locks.

I've been running HA for many years now, and have resisted the urge so far, but a few recent incidents have me thinking smart locks are the next upgrade I need to think of.

My requirements, equal in priority, are:

  • Must be usable via HA (automating my locks is the primary reason I'm considering this move)
  • Key lock backup (I'm petrified of flat batteries stopping me from entering)
  • Ability for HA to report on battery level (see above)
  • Local network only (prefer IP, but will consider Z-Wave - anything that calls home in the cloud is a hard no)
  • Code and/or fingerprint entry (unique code per person, at least 6 codes)

I say "consider Z-Wave" as I don't currently utilise any Z-Wave devices. The main reason for this is that I run HA (Home Assistant) on a (heh!) HA (high availability) Proxmox setup, and I hadn't sat down to think through how that would work with a Z-Wave USB hub across two nodes.

But, after some cursory research, it seems there's enough options out there that will let me control Z-Wave remotely via MQTT, so I can use one of my RasPis to host a Z-Wave hub just fine.

There's been plenty of positive comments on other posts regarding Schlage's locks, so I'll probably start my research there. But I'm very keen to hear of anyone's experiences with any smart lock brands - good or bad - to help guide my research.

While I'm at it, I'm open to recommendations on a Z-Wave hub. I have zero Z-Wave experience, but I gather it's reasonably straightforward to use. Simple enough requirements:

  • Usable on a RasPi running Rasbian
  • Decent enough range - has to reach the smart locks through a couple of internal walls, from the garage to the front door (about 6m/20ft)

Cheers in advance for any advice offered!

55
 
 

Windows and macOS have similar clients (Hass.Agent for Windows and Home Assistant for macOS).

I've found these kinds of clients useful because I can remotely wake-up or sleep computers, track how long they are turned on for, and automatically pause my lights and music when my webcam turns on.

56
 
 

I still get updates for things I have installed, but I haven't seen any new integrations or themes added in some time.

57
 
 

I hope I can explain this correctly; I am only somewhat familiar with docker.

I have a script that I run after Home Assistant OS updates; it updates the alpine operating system with some extra packages and creates three symlinks in /usr/local/bin for three scripts in /config/shell_scripts. Up until now, it's run perfectly when I run it manually over ssh.

Then I decided to create an automation to run it automatically after an HAOS update, and while the package updates work, the script says those symlinks exist already so it doesn't create them; they do not exist, HAOS deletes them after an update (and Core updates might too, but I usually update them together so never checked).

After a lot of frustration, I logged into Home Assistant with root on the 22222 port and found it's checking and finding the previously created symlinks from earlier HAOS updates inside /mnt/data/docker/overlay2/../usr/local/bin and /var/lib/docker/overlay2/../usr/local/bin. At least, that's my guess; googling docker and overlays has been a trip.

So my question: how do I structure the script so that the symlink check is within the docker container's version of /usr/local/bin so it will create the symlink?

I get the answer is probably super obvious, but I am not seeing it. The only other thing I can think to do is export /homeassistant/shell_scripts to PATH but while that works over ssh, I haven't tested that running as a shell script service and I really want to automate this process.

Screenshot of full script attached; here's the short version I'm using for testing. This has been checked with and without variables for paths.

#!/bin/bash

# variables
bin_home="/usr/local/bin"
shell_home="/homeassistant/shell_scripts"

# add packages
pkgs="coreutils figlet iproute2 iw jq procps-ng sed util-linux wireless-tools"
apk add $pkgs
echo "Packages Updated"

ln -s "$shell_home/lib_comp" "$bin_home/lib_comp"
ln -s "$shell_home/ipa_status" "$bin_home/ipa_status"
ln -s "$shell_home/ssh_text" "$bin_home/ssh_text"

echo "Done"
58
 
 

I'd like to use my smartphone WiFi SSID to determine if I'm home or not. When I'm home the alarm (kinda, just notifications from some sensors) needs to be shut off and a light needs to be turned on. Since the sensors update can be forced at maximum 1 minute (but I'd prefer to leave it at 15 minutes to preserve battery) and since 1 minute is too much, is there a way to send an intent to HA companion app to send a sensors update? I would use Tasker to send the intent.

59
14
Discover devices in VLAN (self.homeassistant)
submitted 4 months ago by peregus to c/homeassistant
 
 

I've a VLAN dedicated to IoT devices and, of course, HA can't discover them. Is it possible have them discovered by HA via MQTT? Create them manually it's a pita because they're a lot and I would have to create sensors/switches + battery level + RSSI Thanks!

60
43
submitted 4 months ago by rouxdoo to c/homeassistant
 
 

I love playing with my HA and associated devices. I suspect that most of you reading this get a bit of a jolt every time you add and incorporate a new sensor, camera, integration and get to play with it.

I have all the door/window sensors and locks/covers, every angle of my exterior covered with cameras, alarm, network devices, appliances, sprinklers, household devices covered.

Any ideas for a new thing I can play with?

61
37
submitted 4 months ago* (last edited 4 months ago) by Heavybell to c/homeassistant
 
 

So I'd like to have a video doorbell set up so that it communicates locally with my HA, raising an event when the button is pressed, allowing me to watch its audio and video stream live, and speak back to whoever is at the door. Ideally either from the browser or my phone, when I'm at home or not.

I don't care about motion sensing or AI or even NVR functions really. What software do I need? Should I bother going through the process of setting up Frigate or is there something simpler that would do the job?

62
 
 

Sorry if this is a newb question; I'm coming in cold. I've had HAOS running on an RPi4 for months, but I haven't invested in any smart devices to connect yet.

I'd like to start with some (ideally open source) smart gauges just to check the temp out front and back. Any recommendations?

Thanks!

63
25
submitted 4 months ago* (last edited 4 months ago) by corroded to c/homeassistant
 
 

I have been using the BlueIris NVR integration (from HACS) for quite some time, and it works great for triggering BI from HA. I've trying to do the opposite now: Fire off automations in HA whenever BI detects motion on one of my cameras.

I've never used MQTT before, so I'm learning as I go, but I think I have most of my setup configured properly. I've installed Mosquitto and the MQTT integration in HA. I've configured BI to connect to HA, and running "Test" in the "Edit MQTT Server" menu in BI shows a good connection and no errors. I've set my cameras to post an MQTT event when the alert is triggered (and I've verified that the alerts are in fact being triggered).

Nothing happens in HA, though. The "Motion" sensor for my camera in HA stays at "Clear." In fact, the history shows no change at all, ever.

I have the events in BI set up as follows: On Alert: MQTT Topic - BlueIris/&CAM/Status and Payload - { "type": "&TYPE", "trigger": "ON" } On Reset: Exactly the same, but change ON to OFF.

I've tried change the MQTT autodiscovery header in HA from "homeassistant" to "BlueIris," and it made no difference. The Mosquitto logs show a login from HA, so I feel like I'm close, but I'm not sure where else to look.

Edit: I installed MQTT explorer, and I've verified that the messages are making it to Mosquitto, and they appear to be correctly formatted.

UPDATE: I set the MQTT integration to listen to the MQTT messages coming from BI, and sure enough, they were coming through just fine. For some reason, the BI integration just wasn't seeing them. Digging through the system logs, I saw some errors "creating a binary sensor" coming from the BI integration. The only thing I can think is that because I didn't have MQTT set up when I first installed the BI integration, something went wrong with the config (although I had already rebooted the system several times). I re-downloaded the BI integration and re-installed it, and now everything works perfectly.

64
65
 
 

Hey guys,

I made an automation that powers off my bluetooth speaker (using IR blaster) when ChromeCast is powered off for more than 10 s. Automation is working fine, but sometimes ChromeCast changes state from OFF to Unavailable and back to OFF in just a few seconds. I have no idea why is that happening, but it triggers automation and turns ON the speaker (it is the same IR button for ON and OFF) and gets it out of sync.

What condition or trigger should I use to make it work only when ChromeCast state changes from ON to OFF and ignores Unavailable to OFF?

There is my automation:


alias: Turn off JBL
description: if CC is off for 10 sec
trigger:
  - platform: device
    type: turned_off
    device_id: bc1049ea43a53092952d364749c3fb4c
    entity_id: ae0ea35649746ed5cea16f8d6ca54dd3
    domain: remote
    for:
      hours: 0
      minutes: 0
      seconds: 10
condition: []
action:
  - service: remote.send_command
    metadata: {}
    data:
      num_repeats: 1
      delay_secs: 0.4
      hold_secs: 0
      device: jbl
      command: "off"
    target:
      device_id: 4f1f3a13324e03646ff6b03aed27f2fe
mode: single

thanks in advance

66
 
 

Curious to see how many people here are using Wyoming Satellites, and if so, what are you doing to build/house them?

I have a sample one working on an old pi and a computer speaker hooked up, with my primary Blue mic. Obviously this isn't long term, and I'm looking at building a few of these.

So, what do you use? Raspberry pi? Some sort of hat on it? What sort of casing do you use? Any really cool implementations? I'll take all ideas and suggestions!

67
 
 

It even has a demo right there on the phone. Also nice to see the version of the latest release at the top. This is the home page at https://www.home-assistant.io/

68
69
22
submitted 4 months ago* (last edited 4 months ago) by [email protected] to c/homeassistant
 
 

Hello,

I'm looking for a ZigBee keypad and RFC tag for my alarm. I'm using zigbee2mqtt and alarmo. Any suggestion ? Thanks !

70
22
Shelly relays for energy monitoring (forum.uncomfortable.business)
submitted 4 months ago by [email protected] to c/homeassistant
 
 

I'm wanting to add a bunch of energy monitoring stuff so I can both track costs, and maybe implement automation to turn stuff on and off based on power costs and timing.

I'm using some TPlink based plugs right now which are like, fine, but I'm wanting to add something like 6 to 10 more monitoring devices/relays.

Anyone have experience with a bunch of shelly devices and if there's any weird behavior I should be aware of?

Assume I have good enough wifi to handle adding another 10 devices to it, but beyond that any gotchas?

71
8
submitted 4 months ago* (last edited 4 months ago) by [email protected] to c/homeassistant
 
 

Thanks to Smart Home Junkie's video (invidious link), I had my Atom Echos as voice recognition boxes with all audio output redirected to a media player of my choice (because the audio on the Echo is super quiet).

Whenever ESPHome updated, I updated my Echos to get the recent ESPHome updates, and then reinstalled the custom yaml for audio redirection.

However, with ESPHome's recent 2024.6.4 update, trying to install the yaml triggers errors that don't seem to make sense. For example, here's a section of the yaml:

microphone:
  - platform: i2s_audio
    id: echo_microphone_kitchen
    i2s_din_pin: GPIO23
    adc_type: external
    pdm: true

speaker:
  - platform: i2s_audio
    id: echo_speaker_kitchen
    i2s_dout_pin: GPIO21
    dac_type: external
    mode: mono

voice_assistant:
  id: va
  microphone: echo_microphone_kitchen
  speaker: echo_speaker_kitchen
  noise_suppression_level: 2
  auto_gain: 31dBFS
  volume_multiplier: 2.0
  vad_threshold: 3
  on_listening:
    - light.turn_on:
        id: led
        blue: 100%
        red: 0%
        green: 0%
        effect: "Slow Pulse"
  on_stt_vad_end:
    - light.turn_on:
        id: led
        blue: 100%
        red: 0%
        green: 0%
        effect: "Fast Pulse"
  on_tts_start:
    - light.turn_on:
        id: led
        blue: 100%
        red: 0%
        green: 0%
        brightness: 100%
        effect: none
  on_tts_end:
    - homeassistant.service:
        service: media_player.play_media
        data:
          entity_id: media_player.${media_player}
          media_content_id: !lambda 'return x;'
          media_content_type: music
          announce: "false"
  on_end:
    - delay: 100ms
    - wait_until:
        not:
          speaker.is_playing:
    - script.execute: reset_led
  on_error:
    - light.turn_on:
        id: led
        red: 100%
        green: 0%
        blue: 0%
        brightness: 100%
        effect: none
    - delay: 1s
    - script.execute: reset_led
  on_client_connected:
    - if:
        condition:
          switch.is_on: use_wake_word
        then:
          - voice_assistant.start_continuous:
          - script.execute: reset_led
  on_client_disconnected:
    - if:
        condition:
          switch.is_on: use_wake_word
        then:
          - voice_assistant.stop:
          - light.turn_off: led

external_components:
  - source: github://pr#5230
    components:
      - esp_adf
    refresh: 0s

esp_adf:

On lines 3 and 10 I define unique IDs for the device's microphone and speaker.

But ESPHome won't compile, telling me:

  • on line 46: Too many candidates found for 'id' type 'speaker::Speaker' Some are 'echo_speaker', 'echo_speaker_kitchen'.
  • on line 57: Too many candidates found for 'id' type 'speaker::Speaker' Some are 'echo_speaker', 'echo_speaker_kitchen'.
  • on line 77: Too many candidates found for 'id' type 'microphone::Microphone' Some are 'echo_microphone', 'echo_microphone_kitchen'.
  • on line 90: Too many candidates found for 'id' type 'speaker::Speaker' Some are 'echo_speaker', 'echo_speaker_kitchen'.

There are no other occurrences of the word "speaker" or "microphone" in the conf yaml (and I'm not including other yaml files).

I'm assuming most of this config is default, and the only things I care about are forcing pin 21 for the speaker (line 11) and redirecting audio to my media player (lines 45-52).

72
73
 
 

I am talking about this kind of livestream.

It looks nice, with all the different layouts and so on.

74
75
 
 

I have been using the Kasa (TP-Link) branded smart switches around my house, but now that I have a few third reality zigbee sensors for my doors and so on, I am seeing the value of using more outlets/switches that act as zigbee repeaters. Do any of you have pretty reasonable (and cheapish) smart light switches or outlets I can invest in? The Amazon offerings are in the $50 each one which is pretty steep, though I guess I could just do one each room and do the rest with Kasa stuff.

I would like to expand the zigbee mesh network so I can use the devices where I actually want them without using smart outlet devices plugged into real outlets all over the place. If there was something that was $20 or less each item that would be super excellent. The wife and I plan to move in the not too distant future and I'd like to replace the "in the wall" stuff so that HA works throughout the house and I don't have plugs / dongles / wall warts all over the place.

Thanks in advance for any insight!

view more: ‹ prev next ›