Quantcast
Channel: Configuration - Home Assistant Community
Viewing all 106627 articles
Browse latest View live

Aqara Window/Door Sensors going to sleep?

$
0
0

I have some Aqara window and door sensors I recently added and I noticed that they kept showing as unavailable. When I look at their history it shows that they’re available for right around a half hour and then go unavailable for about 19-20 minutes. If the door is opened or closed in the time they’re unavailable it will register that opening or closing. This pattern gives me the impression that they are going to sleep for 20 minute intervals before waking up and reporting again. Is there a way to keep solve this? Having them unavailable part of the time makes them kind of useless to some of my desired automations.

2 posts - 2 participants

Read full topic


Getting attribute information in automation

$
0
0

I have a custom sensor (from rest) with several attributes. I am trying to set up an notify automation that will fire when any of the attribute values change. The notification could say something like “Attribute [attribute_name] changed from [previous_value] to [new_value].

This is pretty easy to do with multiple triggers with Trigger IDs and multiple Notify entries, but I would like to use a single trigger and a single notify with variable substitution for the attribute name and values. This means that I must be able to retrieve the name of the attribute that triggered the automation, as well as the prior / current values of that attribute. Is that possible? Thanks.

1 post - 1 participant

Read full topic

Get sibling entities in Python script

$
0
0

Hey all! I hope I’m not trying to solve the wrong problem here. Here goes :slight_smile:

I am writing a python script where I am making decisions about what to do with a device’s entity based on one of its other entity’s states.

I’m basically making a power shedding setup. If my total current is above X, then I want to check each of my relays’ current at the moment and turn one or more of them off until the current is below a threshold. Each relay is a separate esphome device with a current sensor, a relay, and some other entities.

I think what I want to do is this:

  • Given {current_sensor_id}, get the state. If total current > threshold, get the device for {current_sensor_id}.
  • Look at all entities for the device, and find the relay switch. Turn it off.

I see that helpers can do some of this, but it appears they are not accessible from within python scripts.

If there is a better way to do this (preferably without doing string substitution on Ids,) I’m all ears. This is just how I decided to approach it :slight_smile:

Thanks in advance!

1 post - 1 participant

Read full topic

Repo won't add

$
0
0

Pi4 Installation, most recent version

I can’t get the repo to add. Keep getting this error:

3 posts - 2 participants

Read full topic

Wrong Pairing Code | Nanoleaf Essential Thread VIA HomepodMini Thread Network

$
0
0

Hello everyone !

After looking for the solution, i didn’t find it. I’ve follow the following steps :

  1. Associate the Nanoleaf Bulb to Homekit
  2. Link it ti my HomeKit House
  3. Unlink it to my HomeKit House
  4. Found it on my HA device manager

but after it, i’ve got this error message (picture joined) :
image

The code is the good one; i’ve tried to entered this code format : XXXXXXXX | XXXX-XXXX | XXX-XX-XXX but nothing to do… my device don’t want to pairing with my HA.

Anyone could help me please ?

Thank you

1 post - 1 participant

Read full topic

Issue Z2MQTT 'Error: ZCL command

$
0
0

Hi everyone. I have some issue with Sonoff USB dongle - P. Suddenly it’s making this mistake " z2m: Publish ‘set’ ‘ir_code_to_send’ to ‘Ir_blaster’ failed: ‘Error: ZCL command 0x8c65a3fffea20c0f/1 zosungIRTransmit.zosungSendIRCode00({“seq”:0,“length”:170,“unk1”:0,“unk2”:57348,“unk3”:1,“cmd”:2,“unk4”:0}, {“timeout”:10000,“disableResponse”:false,“disableRecovery”:false,“disableDefaultResponse”:true,“direction”:0,“srcEndpoint”:null,“reservedBits”:0,“manufacturerCode”:null,“transactionSequenceNumber”:null,“writeUndiv”:false}) failed (Data request failed with error: ‘MAC transaction expired’ (240))’"
I flashed it with Zigstar Koenkk - CC1352P2_CC2652P_launchpad latest version, reloaded z2mqtt, server, devices.
Thank you in advance for your help



1 post - 1 participant

Read full topic

Roku devices showing under TP-Link Omada

$
0
0

Hello. When adding TP-Link Omada integration, I’m presented with 6 devices, 3 TP-Link access points, 1 TP-Link router and 2 Roku devices.

I have a fairly new HAOS installation on a RPi5 8gb, no custom configs or additions to the config file.

Why do the Roku devices show up like that? Is that normal? Did I press something?

2 posts - 2 participants

Read full topic

Dynamic picture

$
0
0

I want to show a picture that is derived from an atribute of a media_player. Is there a way to dynamically change the entity_picture in a custom buitton card to that of this dynamic attribute ( entity_picture attribute of my media_player changes based on the content watched).

4 posts - 4 participants

Read full topic


Getting error: extra keys not allowed @ data["input_boolean"]

$
0
0

hey guys,

Unsure where im going wrong, if its my implementation of boolean or what but I keep getting this error…
Trying to automate an LED strip colour change on a bi weekly cycle for bin collection.

input_boolean:
  biweekly_even:
    name: "Biweekly Even Fortnight"
    initial: on

automation:
  - alias: "Red Bin Out"
    trigger:
      - platform: time
        at: "16:00:00"
      - platform: time
        at: "20:00:00"
    condition:
      - condition: state
        entity_id: input_boolean.biweekly_even
        state: "on"
      - condition: time
        weekday:
          - wed
    action:
      - service: light.turn_on
        entity_id: XXXXXXXXXXXXXXXXXXX
        data_template:
          rgb_color: >
            {% if now().hour == 16 %}
              [255, 0, 0]  # Red color at 4:00 PM
            {% elif now().hour == 20 %}
              [255, 178, 102]  # Orange-ish color at 8:00 PM
            {% endif %}

4 posts - 2 participants

Read full topic

Increment Received Rainfall from Cumulative Sensor

$
0
0

I am receiving rain data from my weather station via rtl_433. All is going well except for the fact that the station only reports the accumulated rain since it was last powered on (491.8mm currently).

I want to create a sensor that resets to 0.0mm at midnight each day and then increments if/when my rain sensor (sensor.bresser_6in1_0_860321798_rain_total) value increases.

An example would be:

  1. sensor.bresser_6in1_0_860321798_rain_total starts at 491.8mm and sensor.rainfall_accumulated_change starts at 0mm.
  2. sensor.bresser_6in1_0_860321798_rain_total increases to 492.8mm, then sensor.rainfall_accumulated_change new value should be 1mm.
  3. sensor.bresser_6in1_0_860321798_rain_total then increases from 492.8mm to 592.8mm, therefore sensor.rainfall_accumulated_change new value should be 101mm.

I hope this makes sense.

I tried this in the template editor, including changing the state of sensor.bresser_6in1_0_860321798_rain_total from 491.8 to 492.8 beforehand:

sensor:
  - platform: template
    sensors:
      rainfall_accumulated_change:
        friendly_name: "Rainfall Accumulated Change"
        value_template: >
          {% set current_rain_total = states('sensor.bresser_6in1_0_860321798_rain_total') | float %}
          {% set last_rain_total = state_attr('sensor.rainfall_accumulated_change', 'last_rain_total') | float(default=0) %}
          {% set accumulated_change = current_rain_total - last_rain_total %}
          {{ accumulated_change }}
        attribute_templates:
          last_rain_total: "{{ states('sensor.bresser_6in1_0_860321798_rain_total') }}"

I received this output:

sensor:
  - platform: template
    sensors:
      rainfall_accumulated_change:
        friendly_name: "Rainfall Accumulated Change"
        value_template: >
          
          
          
          0.0
        attribute_templates:
          last_rain_total: "492.8"

This recognises the last rain total correctly but does not increment the value.

7 posts - 3 participants

Read full topic

Z-wave js ui crashes when saving settings

$
0
0

HAOS Supervised on Raspberry Pi 3. Brand new install. First installed Z2M and everything works fine.

I now want to add back my z-wave devices using my old network keys. I enter the serial port, the 4 keys, and generate random keys for long range (I did not have any long range keys from before).

I click save. The wheel keeps spinning then Home Assistant reboots/restarts after a few minutes.

1 post - 1 participant

Read full topic

Temperature query every 10s from http

$
0
0

Hello,

This is the code I’m attempting to use. I have a device that upon an http get, responds with json formatted data for temperature and humidity. Then it’ll turn around and publish it to Mosquito. I cannot get home assistant to accept my get_temperature.yaml file and it will not tell me the errors. Not even in logs. Anyone see any problems? (cut and paste may have messed up indention here, but it intellisense seems to pass it in studio code server.

- alias: "Get Temperature and Humidity"
  trigger:
    - platform: time_pattern
      seconds: "/10" # Trigger every 10 seconds

  action:
    - service: http.get
      # Replace with your device's IP address and endpoint
      url: http://192.168.87.106
      # Optionally, you can configure headers or authentication if needed

    # Use data_template to extract data from JSON response
    - service: mqtt.publish
      data_template:
        topic: "/homeassistant/home/workroom/"
        payload: >
          {% - set json_data = trigger.to_state.state_json -%}
          {"temperature": {{ json_data.temperature }},
          "humidity": {{ json_data.humidity }}}
        # Add additional options like qos and retain if needed
        qos: 0 # Quality of Service level
        retain: false # Retain flag for MQTT message

3 posts - 3 participants

Read full topic

Netatmo Rain Sensor

$
0
0

Hello, I am writing this post because I need your help with a problem where the solution has to be bulletproof.

I have recently installed a rain sensor from “Netatmo” with the corresponding integration. I also get the data as the integration envisages.

Unfortunately, I am not satisfied with the entities as they are provided.
I get the following entities:

  • Precipitation (Shows the precipitation as soon as it has occurred and then resets to zero)

  • Precipitation last hour

  • Precipitation today

All reset to zero.

Now I would like to have an entity in which the precipitation is formed in such a way that I can display the precipitation of the current hour, the current day, the current month and the current year.

I thought it might be an idea to count the amount of precipitation coming down in relation to time for the “Precipitation” entity.

I had thought of a helper but I know that a utility metre can’t do that. But how else would you do it?

How can I manage this so that there are no errors in the long term?
Thank you in advance and I am of course available for any questions.

1 post - 1 participant

Read full topic

Frigate just stopped working #angryface

$
0
0

Ok, Frigate was hard enough for me to use and it took me weeks and weeks to get it running with my 4 cameras, get them recording, saving on network drive, etc.

Then, I don’t even know when, but I’m thinking a week or so ago, it just stopped working. I don’t know enough about this to even describe what’s going on, but it’ll barely load, and when it does, none of the live view cameras seem to work. The only way I even got it to load was by removing the previous:

ui:
 live_mode: webrtc

Was there an update and now the config.yaml file needs reworked? And if so, that’s complete crap, it should be a set it and forget it, I shouldn’t have to try and figure out how to code this every month or two. I’m not a programmer.

Sorry for my frustration, this stuff is so hard, I’m probably in over my head, but geez, I just want some working cameras. I’ll post my config file, but I don’t have a clue what hardly any of this means.

It’s even acting like my CoralTPU isn’t loaded, but I’ve literally changed nothing on my system :rage: :rage:

2024-07-12 05:08:53.133470767  [INFO] Preparing Frigate...
2024-07-12 05:08:53.145739085  [INFO] Starting Frigate...
2024-07-12 05:08:54.549000030  [2024-07-12 01:08:54] frigate.app                    INFO    : Starting Frigate (0.13.2-6476f8a)
2024-07-12 05:08:54.549092425  [2024-07-12 01:08:54] frigate.app                    INFO    : Creating directory: /tmp/cache
2024-07-12 05:08:54.621067243  [2024-07-12 01:08:54] peewee_migrate.logs            INFO    : Starting migrations
2024-07-12 05:08:54.625011511  [2024-07-12 01:08:54] peewee_migrate.logs            INFO    : There is nothing to migrate
2024-07-12 05:08:54.629278139  [2024-07-12 01:08:54] frigate.app                    INFO    : Recording process started: 451
2024-07-12 05:08:54.631633766  [2024-07-12 01:08:54] frigate.app                    INFO    : go2rtc process pid: 89
2024-07-12 05:08:54.652884921  [2024-07-12 01:08:54] detector.coral                 INFO    : Starting detection process: 461
2024-07-12 05:08:54.654408607  [2024-07-12 01:08:54] frigate.app                    INFO    : Output process started: 463
2024-07-12 05:08:54.655533770  [2024-07-12 01:08:54] frigate.detectors.plugins.edgetpu_tfl INFO    : Attempting to load TPU as usb
2024-07-12 05:08:54.655652259  [2024-07-12 01:08:54] frigate.detectors.plugins.edgetpu_tfl ERROR   : No EdgeTPU was detected. If you do not have a Coral device yet, you must configure CPU detectors.
2024-07-12 05:08:54.655706971  Process detector:coral:
2024-07-12 05:08:54.656664540  Traceback (most recent call last):
2024-07-12 05:08:54.656685149    File "/usr/lib/python3/dist-packages/tflite_runtime/interpreter.py", line 160, in load_delegate
2024-07-12 05:08:54.656686925      delegate = Delegate(library, options)
2024-07-12 05:08:54.656688861    File "/usr/lib/python3/dist-packages/tflite_runtime/interpreter.py", line 119, in __init__
2024-07-12 05:08:54.656692986      raise ValueError(capture.message)
2024-07-12 05:08:54.656694938  ValueError
2024-07-12 05:08:54.656707491  
2024-07-12 05:08:54.656709626  During handling of the above exception, another exception occurred:
2024-07-12 05:08:54.656711325  
2024-07-12 05:08:54.656712741  Traceback (most recent call last):
2024-07-12 05:08:54.656747047    File "/usr/lib/python3.9/multiprocessing/process.py", line 315, in _bootstrap
2024-07-12 05:08:54.656750237      self.run()
2024-07-12 05:08:54.656752575    File "/usr/lib/python3.9/multiprocessing/process.py", line 108, in run
2024-07-12 05:08:54.656754691      self._target(*self._args, **self._kwargs)
2024-07-12 05:08:54.656756863    File "/opt/frigate/frigate/object_detection.py", line 102, in run_detector
2024-07-12 05:08:54.656759098      object_detector = LocalObjectDetector(detector_config=detector_config)
2024-07-12 05:08:54.656779330    File "/opt/frigate/frigate/object_detection.py", line 53, in __init__
2024-07-12 05:08:54.656781509      self.detect_api = create_detector(detector_config)
2024-07-12 05:08:54.656783177    File "/opt/frigate/frigate/detectors/__init__.py", line 18, in create_detector
2024-07-12 05:08:54.656784643      return api(detector_config)
2024-07-12 05:08:54.656786326    File "/opt/frigate/frigate/detectors/plugins/edgetpu_tfl.py", line 41, in __init__
2024-07-12 05:08:54.656788098      edge_tpu_delegate = load_delegate("libedgetpu.so.1.0", device_config)
2024-07-12 05:08:54.656789808    File "/usr/lib/python3/dist-packages/tflite_runtime/interpreter.py", line 162, in load_delegate
2024-07-12 05:08:54.656812573      raise ValueError('Failed to load delegate from {}\n{}'.format(
2024-07-12 05:08:54.656814674  ValueError: Failed to load delegate from libedgetpu.so.1.0
2024-07-12 05:08:54.656815974  
2024-07-12 05:08:55.026034641  [2024-07-12 01:08:55] frigate.app                    INFO    : Camera processor started for garage_exterior: 485
2024-07-12 05:08:55.026148820  [2024-07-12 01:08:55] frigate.app                    INFO    : Camera processor started for garage_interior: 486
2024-07-12 05:08:55.033319536  [2024-07-12 01:08:55] frigate.app                    INFO    : Camera processor started for front_porch: 488
2024-07-12 05:08:55.040581629  [2024-07-12 01:08:55] frigate.app                    INFO    : Camera processor started for back_deck: 490
2024-07-12 05:08:55.047948500  [2024-07-12 01:08:55] frigate.app                    INFO    : Capture process started for garage_exterior: 492
2024-07-12 05:08:55.055206006  [2024-07-12 01:08:55] frigate.app                    INFO    : Capture process started for garage_interior: 494
2024-07-12 05:08:55.063073251  [2024-07-12 01:08:55] frigate.app                    INFO    : Capture process started for front_porch: 497
2024-07-12 05:08:55.072174773  [2024-07-12 01:08:55] frigate.app                    INFO    : Capture process started for back_deck: 501

If you need my config file, I can post that too.

1 post - 1 participant

Read full topic

My local site won't work

$
0
0

So very randomly, my local site won’t load. I have on clue where to even start.

so this:
http://homeassistant.local:8123/
will no longer load. I’ve never had a problem in the 2ish years I’ve been using this.

But what’s weird is that my remote nabu.casa page works just fine.

Any ideas on even where to start?

14 posts - 2 participants

Read full topic


Detect water pipe failure

$
0
0

Hello,

Can anybody help me out.
I have a shelly in front of my water pump. One night my outdoor gardena water house broke and the pump pumped constantly for several hours. Then I did a statistics helper, that looks for 30 minutes average usage. I wan planning to do a automation based on that. All looks good, if I have some normal usage like during daytime. But in night, when there is no usage, the first pump usage gives the average also max value (~1000W). Seems like shelly does not give home assistant the zero values of usage and the only value for last 30 minutes is the time when I start to use water in the morning.
A graph of the wattage and average:


To be honest I have no ideas, how to proceed.

1 post - 1 participant

Read full topic

Cyclically send messages until the end of the result

$
0
0

Hi all.

I have an automation that controlsemergency water sensors. When triggered, depending on the conditions, the automation performs certain actions. One of the actions is sending messages to telegrams and phones. Everything works fine, but the message is only sent once.

I want messages to be sent once per minute until the problem is resolved. I’m guessing I need to use a timer, but can’t figure out how to write the code correctly.
My experience is minimal so far.

Can any of the gurus help with a code example?

Automation code:

alias: Controls emergency water
description: ""
trigger:
  - type: moist
    platform: device
    device_id: 09e9b209a09a790cfc70a53a2d1c5545
    entity_id: dbe4d846979a0613b669b95ab1d6d116
    domain: binary_sensor
  - type: moist
    platform: device
    device_id: 30fcd4ddcc919ed35a18fffb85b8760c
    entity_id: 505725fe34107a674cf719cecc6e7297
    domain: binary_sensor
  - type: moist
    platform: device
    device_id: d6b03590933f7b8768e4adc667c4a957
    entity_id: 7e9a078d6c4f00ff496e8fb36f7713c2
    domain: binary_sensor
  - type: moist
    platform: device
    device_id: 003be410dd32d34f2df8a2647336cbf7
    entity_id: 24f935a1714b26fd9e51b7241b8c0b30
    domain: binary_sensor
  - type: moist
    platform: device
    device_id: 0122ea30876f4d84e0af706cd0432642
    entity_id: 4a60b433550f5c24d3e111f7e53bcbee
    domain: binary_sensor
condition: []
action:
  - choose:
      - conditions:
          - condition: state
            entity_id: input_boolean.okhrana
            state: "off"
        sequence:
          - service: switch.turn_on
            metadata: {}
            data: {}
            target:
              entity_id: switch.gidrolock_water_tap
          - service: switch.turn_on
            metadata: {}
            data: {}
            target:
              entity_id: switch.sirena
          - service: notify.mobile_app_jad_lx9
            data:
              message: >-
                "*В квартире потоп. Сработал датчик *{{ trigger.to_state.name }}*"
          - service: notify.telegram_cannel_info
            data:
              message: "*В квартире потоп. Сработал датчик *{{ trigger.to_state.name }}*"
          - if:
              - condition: numeric_state
                entity_id: sensor.sun_solar_azimuth
                below: 200
            then:
              - service: light.turn_on
                metadata: {}
                data: {}
                target:
                  label_id: obshchee_osveshchenie
      - conditions:
          - condition: state
            entity_id: input_boolean.okhrana
            state: "on"
        sequence:
          - service: switch.turn_on
            metadata: {}
            data: {}
            target:
              entity_id: switch.gidrolock_water_tap
          - service: notify.telegram_cannel_info
            data:
              message: "*В квартире потоп. Сработал датчик *{{ trigger.to_state.name }}*"
          - service: notify.mobile_app_jad_lx9
            data:
              message: >-
                "*В квартире потоп. Сработал датчик *{{ trigger.to_state.name }}*"
mode: single

6 posts - 3 participants

Read full topic

Average of Energy Consumption

$
0
0

Hey,
I am trying to get an entity, that gives me the daily average of energy consumption of the past week.

I searched a lot and found many articles, but not one helped me especially in this case

I have an entity for power consumption and need to build and entity, that gives me the value of power consumption exactly 7 days ago from now (no defined time)

So I could calculate the difference between the value of 7 days ago and the actual to get the consumption of the last 7 days at total.

I hope I described the problem correctly.

Thanks and best regards

2 posts - 2 participants

Read full topic

How to use Bluetooth speaker as alarm

$
0
0

Hi,
I am running Raspberry Pi 5. It has inbuilt Bluetooth which I connected to Speaker using terminal:
bluetoothctl
scan (to find Mac and name of your bt speaker)
pair
Trust
connect

My speaker says “connected”

Now I want to use this Bluetooth speaker to play music and also use it as alarm or siren. How do I do this? Pls help
Tia

1 post - 1 participant

Read full topic

Aqara U200 - Matter integration

$
0
0

Hello there,

is anyone looking into fully integrate the U200 into Matter with HA?

Features I’m looking for:

  • Getting full status of the lock (including jammed)
  • Getting the log of events (including who unlocked the door)
  • Managing PIN codes (and find out if you can set schedules via Matter)

I need some help as I know Matter very well but I don’t know HA that well. That’s if anyone is interested.

1 post - 1 participant

Read full topic

Viewing all 106627 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>