Quantcast
Channel: Configuration - Home Assistant Community

How to add remote devices when HA is on an immovable server

$
0
0

What are my options for z wave device inclusion when the pc is immovable? I am moving from homeseer and far away devices included fine when added from nearest to server to farthest. However with HA I’m having trouble when more than a small distance away.
The devices are dimmers that can’t be moved.
I’m new to HA, so is there a setting to use the network for inclusion?

Thanks!

3 posts - 3 participants

Read full topic


Binary sensor between two dates

$
0
0

Hi,

last year, i wanted to have a binary sensor that gives back “true” when the date is between november 24th and february 1st. So i added this in the configuration.yaml and it worked as expected:

    - name: "Weihnachten"
      unique_id: is_xmas
      state: >
        {{ not (now().month, now().day) >= (2,1) and (now().month, now().day) <= (11,24) }}

I used this binary sensor as condition for my christmas lights automation.
But now, it doesn’t work anymore. The binary sensor always gives back “false” state.
Any idea?

Thnaks

StefanV3

2 posts - 2 participants

Read full topic

Zigbee2MQTT - Aqara Temperature Sensor

$
0
0

Hello, Sorry if this has been asked before but I’m going round in circles with this one. I have a Sonoff Zigbee 3.0 USB Dongle plus connected to HA and running Zigbee2MQTT. I have successfully connected the device however the Aqara sensor (lumi.sensor_ht.agl02) is only reporting battery level, not temperature, humidity and pressure. I have tried this via ZHA and all these values are reported but not the battery level. Has anyone else had this issue or can someone help me work out what’s going wrong here. Many Thanks.

3 posts - 2 participants

Read full topic

Live view from Dahua camera freezes when someone enters field of view

$
0
0

The live view from my security cameras freeze for 10-30 seconds when someone enters the field of view.

  • By “live” view, I mean what is shown in a Picture Glance card or directly from the cameras local web view outside of HA.
  • I’m using “EmpireTech (Dahua/Loryta) 4MP 1/1.8” CMOS" cameras (IPC-T549M-ALED-S3). I have five cameras
  • The cameras are wired Ethernet via POA switches.
  • HA is using the ONVIF integration.
  • I have event detection and any local camera’s SDCARD recording disabled as I thought that might be causing the camera feed to freeze.
  • I don’t have this freezing happen with the camera’s direct web view if I have HA shut down. So it kind of looks like HA is doing something when someone enters the view. Maybe HA is doing something like requesting a bunch of stuff and overloading the camera’s direct view?
  • A given camera freezes when someone enters the view from another camera.
  • I have an automation that captures a snapshot of my front entry and texts the snapshot to my phone when someone trips an ultrasonic proximity sensor on my walkway. That works well. But when I go to HA to view the live view, whoever is there is gone by the time the Picture Glance card is un-frozen and starts updating 30 seconds later.
  • When I had local recording enabled on the cameras, the recording was continuous without gaps or freezing during this event.

Anybody seen this?

Curtis

1 post - 1 participant

Read full topic

Can you extend the timeout before an entity becomes unavailable (HACs integration)

$
0
0

I am using the open media vault HACS integration, and the default polling time is set to 60 seconds. Keeping it like this means the hard disks connected to OMV never get a chance to spin down (known issue).

So I have set the polling interval to 7200 seconds, or 2 hours. This works fine, but I can now see gaps in my entities history, where they go unavailable after 1 hour.

Is there a way to extend this so the entities don’t go unavailable until 2 hours ? (or maybe more in the future if I extend the polling time further).

1 post - 1 participant

Read full topic

Dynamically adjust EVSE power based on grid fossil fuel percentage

$
0
0

Hi, I have the Chargepoint and Electricity Maps integration setup. Now I want to link the two together so that the Chargers rate tries to avoid times of high fossil fuel. I think a decent approach will be to look at the last week of electricity_maps_grid_fossil_fuel_percentage and do something to set cph50_charging_amperage_limit based on it. The possible range for cph50_charging_amperage_limit is 8 - 32 on my system, so when electricity_maps_grid_fossil_fuel_percentage is at the highest of the week, it should set it to 8 and when it is at the lowest of the week it should set it to 32. Any value in the middle should set it to something in the middle.

Any ideas how I would actually implement that? I’m still pretty new to templates, but feel like those will be involved.

1 post - 1 participant

Read full topic

Best way to run Home Assistant and Homebridge on Raspberry Pi

$
0
0

Hello, I want to run Home Assistant and Homebridge on a Raspberry Pi. Would you recommend running each in a separate container, or installing HA OS and then running Homebridge in a container? I have been running Homebridge for a while. I am new to Home Assistant. Thank You!

1 post - 1 participant

Read full topic

Two Zigbee2MQTT on external server

$
0
0

Hi,

I have trouble with my zigbee2mqtt-integrations. My setup is:

external server running docker compose with the following container:

  1. Host: zigbee2mqtt → CH 11, PAN ID 6754,
  2. Host zigbee2mqtt2 ->CH 25, PAN ID 6754

Mosquitto:
3. mosquitto mqtt-Server

Homeassitant is running on a different server.

My issue is, that I always loose devices from the zigbee2mqtt server in Homneassitant when I reboot the other zigbee2mqtt container. That means, that I alway have configured devices in HA from the last booted zigbee2mqtt container. Devices on both containers can be managed by the Web-Interface on the specific zigbee2mqtt-server.

To fix it in HA, I have to re-pair the devices from the missing container. Then both instances work smoothly until the next reboot of one of the zigbee2mqtt-servers

What is going wrong here? Do I need to change the PAN IDs to different IDs? And how can I change it? And what is the consequence if I change the id? Or can someone tell me how toI fix the issue?

here the configuration.yaml from both systems.

configuration1:

homeassistant:
  legacy_entity_attributes: true
permit_join: false
mqtt:
  base_topic: zigbee2mqtt
  server: mqtt://mosquitto:8883
  ca: /app/data/ssl/ca.crt
  key: /app/data/ssl/zigbee2mqtt.key
  cert: /app/data/ssl/zigbee2mqtt.crt
  user: mqttService
  password: xxxxxxx
  serial: null
  port: tcp://172.16.50.5:20108
  keepalive: 60
  reject_unauthorized: false
  version: 4
serial:
  port: tcp://172.16.50.5:20108
frontend:
  port: 8099
advanced:
  log_syslog:
    app_name: Zigbee2MQTT
    eol: /n
    host: localhost
    localhost: localhost
    path: /dev/log
    pid: process.pid
    port: 514
    protocol: udp4
    type: '5424'
  timestamp_format: DD.MM.YYYY HH:mm:ss
  channel: 25
  homeassistant_legacy_entity_attributes: false
  legacy_api: true
  legacy_availability_payload: true
  log_level: info
  last_seen: ISO_8601_local
device_options:
  legacy: false

configuration 2:

homeassistant:
  legacy_entity_attributes: true
permit_join: false
mqtt:
  base_topic: zigbee2mqtt
  server: mqtt://mosquitto:8883
  ca: /app/data/ssl/ca.crt
  key: /app/data/ssl/zigbee2mqtt.key
  cert: /app/data/ssl/zigbee2mqtt.crt
  user: mqttService
  password: xxxxxx
  keepalive: 60
  reject_unauthorized: false
  version: 4
serial:
  port: tcp://172.16.50.7:6638
  baudrate: 115200
frontend:
  port: 8099
advanced:
  log_syslog:
    app_name: Zigbee2MQTT2
    eol: /n
    host: localhost
    localhost: localhost
    path: /dev/log
    pid: process.pid
    port: 514
    protocol: udp4
    type: '5424'
  timestamp_format: DD.MM.YYYY HH:mm:ss
  channel: 11
  transmit_power: 20
  homeassistant_legacy_entity_attributes: false
  legacy_api: true
  legacy_availability_payload: true
  log_level: info
  last_seen: ISO_8601_local
device_options:
  legacy: false
devices:

1 post - 1 participant

Read full topic


Automation - HA Starts

$
0
0

Hi Team.

I am looking to create an automation.

When:
Home Assistant Starts

And If :
Zigbee2MQTT has started

Then Do:
turn a light on / off

When and Then Do simple enough. what do i need to use / check that zigbee2mqtt has started? its this bit i am unsure of.

Thanks in advance

1 post - 1 participant

Read full topic

Can not add matter device to HA

$
0
0

Hello,

I am trying to add matter device to HA (Nuki 4 pro) and I got this error from Matter server. I am using HA app on android phone. The lock is added to Thread network - I see it connected on router, but on the end of adding process (connection device to home assistant) I received message Something wrong and device and entities are not added to HA.
Device was added to HA, works and after it deleted in HA. Added the device again stop with this message.

024/11/25 18:05:35	stderr	e[32m2024-11-25 17:05:35.910e[0m (MainThread) e[1;30mERRORe[0m e[34m[matter_server.server.client_handler]e[0m e[31m[139855547844368] Error while handling: commission_on_network: Commissioning failed for node 16.e[0m
2024/11/25 18:05:35	stderr	e[32m2024-11-25 17:05:35.909e[0m (Dummy-2) e[1;30mWARNINGe[0m e[34m[chip.ChipDeviceCtrl]e[0m e[33mFailed to establish secure session to device: src/controller/python/ChipDeviceController-ScriptDevicePairingDelegate.cpp:89: CHIP Error 0x00000003: Incorrect statee[0m
2024/11/25 18:05:35	stderr	e[32m2024-11-25 17:05:35.909e[0m (Dummy-2) e[1;30mCHIP_ERRORe[0m e[34m[chip.native.ZCL]e[0m e[31mSecure Pairing Failede[0m
2024/11/25 18:05:35	stderr	e[32m2024-11-25 17:05:35.909e[0m (Dummy-2) e[1;30mCHIP_ERRORe[0m e[34m[chip.native.SC]e[0m e[31mPASESession timed out while waiting for a response from the peer. Expected message type was 33e[0m
2024/11/25 18:05:33	stderr	e[32m2024-11-25 17:05:33.300e[0m (Dummy-2) e[1;30mCHIP_ERRORe[0m e[34m[chip.native.EM]e[0m e[31mFailed to Send CHIP MessageCounter:219992892 on exchange 19034i with Node: <0000000000000000, 0> sendCount: 4 max retries: 4e[0m
2024/11/25 18:05:29	stderr	e[32m2024-11-25 17:05:29.682e[0m (MainThread) e[1;30mINFOe[0m e[34m[matter_server.server.device_controller]e[0m Starting Matter commissioning using Node ID 16 and IP fd51:2a68:fc37:1:3aaf:4cd9:7e58:3670.

1 post - 1 participant

Read full topic

Unable to set up Google Assistant integration - Google Actions Sunset

$
0
0

Hey there,

New to home assistant, have most of my house configured with it now using a Raspberry Pi 5 to run it. One issue I am running into is connecting to my Google Home to run custom actions through Home Assistant. I tried to go through the Google Assistant integration manual setup, but it seems that Google Actions are now deprecated (sunset). I can’t seem to find much online about anyone else dealing with this issue, so I am stuck. Is the only way to set up Google Assistant to Home Assistant now to use Home Assistant Cloud? Or is there a new way to do this that isn’t mentioned on the Google Assistant integration setup page.

Additional Info: I was able to connect to my Google Home using the Google Assistant SDK, but that seems to only allow me to broadcast & run actions on the Google Home. This integration doesn’t allow me to ask Google to perform actions, which is what I want.

Would appreciate some help :slight_smile:

1 post - 1 participant

Read full topic

How to use the Media Player component

$
0
0

Hi,

I’m trying to find out how I can use this integration: Media player - Home Assistant

I am somewhat a beginner on HA, I thought I would find the integration when I add it on HA from the integration list, but it didn’t show up. I am using core HA.

I am trying to include it in order to see how I can use different actions from shuffle, repeat, playlists, favorites, join/unjoin for the Sonos integration along with a available card on HA.

1 post - 1 participant

Read full topic

First card on first dashboard won't stay transparent (card_mod)

$
0
0

I’m using the default masonry layout. First card is weather forecast card, but I’ve tried multiple types of cards and configurations. In any other position, on any other dashboard, transparency works fine. When applied to the first card on the first dashboard, transparency works, but card loses transparency when reloading the interface (Web or companion app). Any thoughts?

This is the code I’m using for transparency with card_mod

card_mod:
  style: |
    ha-card {background: transparent;
       --border-style: none;
       --primary-text-color: white;
       --secondary-text-color: teal;
       --border: 0px;
       --box-shadow: none;
       --background: rgba(50,50,50,0.0);
         border: none;}
type: weather-forecast
entity: weather.forecast_home
forecast_type: daily
show_current: true
show_forecast: true

2 posts - 2 participants

Read full topic

Convert Random Sensor to Integer for use in Setting RGB Values

$
0
0

Using 3 random helpers configured between 0 and 255 to set the RGB values of a light.

I understand HA defaults sensor values to string.

Cant seem to find how I’d convert these sensors to integer in a way that works without complaining of data types…

action: light.turn_on
metadata: {}
data:
  rgb_color:
    - { states('sensor.random1')|int(0)}
    - { states('sensor.random2')|int(0)}
    - { states('sensor.random3')|int(0)}
target:
  entity_id: light.tz3210_xz5yasnb_ts0505b_light

Im definitely missing something very simple…

Greatly appreciated!

1 post - 1 participant

Read full topic

Query Voice Assistant about room level presence

$
0
0

Has anyone figured out a efficient solution for integrating Bermuda with voice assistant?

The problem im having stems from having two entities that i want to share the same name. So I would like to be able to query assist to be able to tell me whether Mary is home or away, or query “what room is Mary in?” I can create custom sentence/response, and expose the bermuda derived location sensor to assist, but if the goal is to the have a natural language convo with the voice assistant, i dont want to ask “what room is Mary’s BLE tracker in”, i want to just ask about Mary.

You could rename the sensor to just be Mary, but that will conflict with the person entity Mary.

So I created a MQTT device tracker from the Bermuda sensor so I can add it to the person entity i want to track, but assist cannot seem to recognize anything other than the home/away status of Mary.

Anyway, if anyone has any thoughts im very curious to see how this might be done.

3 posts - 2 participants

Read full topic


Trigger on any Light (Attribute) Change

$
0
0

How can i achieve this? Really tried a lot, but cant get it to work.

I need to trigger Automations, whenever anything regarding the Lights in the corresponding Room changes (bri, col, on/off, temp,…).
For each Room i have set up a Lightgroup (e.g. light.roomlight_kuche), where all lights are in.

While i can trigger on that Lightgroup, that Group doesnt change in certain circumstances. For example, when there is a light with just onoff state.
I would love to avoid adding all lights manually in automations for every room each - that makes it maintainance-unfriendly on the long run.

I have all lights named after the room, e.g. light.grp_kuche_table, light.grp_kuche_ceiling, but Wildcard triggers don’t work.
And Template Triggers only work if they change to True.
I can’t expand a Group to its coresponding entities in a state trigger.

But how can i then capture changes as a trigger in automations, that do not lead to an update of the roomlight.group?

2 posts - 2 participants

Read full topic

History Stats and Long Term Storage - Tracking Visits to places and time (long term)

$
0
0

I am trying to enable long term storage of certain sensors (do not purge after the default time), and am having trouble getting them to stick around.

I am using history stats to track my visits to places as well as how many times I visit. Previously I was keeping my entire HA history for 365 days, and this worked for the most part, but my DB got huge and the system started to run sluggishly. I’ve reverted that setup and now use the default purge.

Is there something else I need to do to keep certain stats/sensors for an indefinite amount of time?

Sample of some of the entries in my sensor.yaml file:

- platform: history_stats
  name: Place 1 Trips Total
  entity_id: person.me
  state: "Place 1"
  type: count
  start: '{{ 0 }}'
  end: '{{ now() }}'
- platform: history_stats
  name: Total Time Spent at Place 1
  entity_id: person.me
  state: "Place 1"
  type: time
  start: '{{ 0 }}'
  end: '{{ now() }}'

2 posts - 2 participants

Read full topic

Help with a Wait template

$
0
0

I am trying to add below wait template for a automation to wait until hvac system becomes idle (as it already reached set temperature) or wait for another binary sensor to be off for 10 minutes. For some reason it never seems to trigger completion once the 10 min is reach for the other sensor state being off. When I try the template in Dev Tools, it seems to return true when hvac_action is idle but if its anything other than that, it returns error “ValueError: Template error: as_timestamp got invalid input ‘’ when rendering template ‘{{ (state_attr(‘climate.my_ecobee’, ‘hvac_action’) in [‘heat’]) or (as_timestamp(now()) - as_timestamp(states.binary_sensor.defrost.last_changed) > 600) }}’ but no default was specified”. Any ideas what I am doing wrong or how to clean up the template syntax?

{{ (state_attr('climate.my_ecobee', 'hvac_action') in ['idle']) or (states('binary_sensor.heat_pump_defrost_detector') in ['off'] and (as_timestamp(now()) - as_timestamp(states.binary_sensor.defrost.last_changed)) > 600) }}

4 posts - 2 participants

Read full topic

Automation for alarm not armed and I'm away - Envisalink with Honeywell alarm

$
0
0

Hi, I am using Envisalink with a Honeywell alarm and I’m trying to figure out an automation for the status of the alarm when I am away. In other words, if the alarm is not armed (either ready, not armed or fault, not armed) and I am away, notify me. I have the away part down, but I can’t figure out what to use for the alarm portion. Thanks.

1 post - 1 participant

Read full topic

Hacs responing unknown error

Leviton ZW15S status led not configured properly

$
0
0

For this new Leviton Decora switch, the “Configure” option (in the Z-Wave device configuration page) does not seem to work. Sure, I can use the button press method on the switch itself to disable the status LED. But why does the Configure option not work as it is supposed to to do this? It has no effect when I tried to use it to disable the status LED.

1 post - 1 participant

Read full topic

Integración SUN

$
0
0

Hello everyone,

I have the SUN integration installed and when I put it on an Entity type card, only the day/month/year is displayed and the time is hidden, which is what I really want to see - screenshot attached - how can I modify it to only show the time when it is sunrise/sunset?

Regards.

3 posts - 2 participants

Read full topic


Syncing thread credentials - Thread Channel Mask is missing from the dataset

$
0
0

Hi

I’m trying to setup more thread (and matter) devices at home.
So far I’ve successfully setup Eve water guard with homekit over thread.
But I’m currently trying to setup Eve energy but it fails, so I wanted to sync my thread credentials to my Android phone but I’m getting unknown error in the UI and the logs says the below text.
I’m using HA in docker and have installed openthread border router with skyconnect on the base Linux install.
If I run ot-ctl dataset active I can see it has an channel mask.

What should I do?

11-25 21:09:20.851 25426 25426 E ThreadManagerImpl: java.lang.IllegalArgumentException: Thread Channel Mask is missing from the dataset
11-25 21:09:20.851 25426 25426 E ThreadManagerImpl: at com.google.android.gms.threadnetwork.ThreadNetworkCredentials.zzb(com.google.android.gms:play-services-threadnetwork@@16.0.0:11)
11-25 21:09:20.851 25426 25426 E ThreadManagerImpl: at com.google.android.gms.threadnetwork.ThreadNetworkCredentials.(com.google.android.gms:play-services-threadnetwork@@16.0.0:9)
11-25 21:09:20.851 25426 25426 E ThreadManagerImpl: at com.google.android.gms.threadnetwork.ThreadNetworkCredentials.fromActiveOperationalDataset(com.google.android.gms:play-services-threadnetwork@@16.0.0:1)
11-25 21:09:20.851 25426 25426 E ThreadManagerImpl: at io.homeassistant.companion.android.thread.ThreadManagerImpl.isPreferredDatasetByDevice(ThreadManagerImpl.kt:241)
11-25 21:09:20.851 25426 25426 E ThreadManagerImpl: at io.homeassistant.companion.android.thread.ThreadManagerImpl.access$isPreferredDatasetByDevice(ThreadManagerImpl.kt:26)
11-25 21:09:20.851 25426 25426 E ThreadManagerImpl: at io.homeassistant.companion.android.thread.ThreadManagerImpl$isPreferredDatasetByDevice$1.invokeSuspend(Unknown Source:16)
11-25 21:09:20.851 25426 25426 E ThreadManagerImpl: at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33)
11-25 21:09:20.851 25426 25426 E ThreadManagerImpl: at kotlinx.coroutines.internal.ScopeCoroutine.afterResume(Scopes.kt:28)
11-25 21:09:20.851 25426 25426 E ThreadManagerImpl: at kotlinx.coroutines.AbstractCoroutine.resumeWith(AbstractCoroutine.kt:100)
11-25 21:09:20.851 25426 25426 E ThreadManagerImpl: at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:46)
11-25 21:09:20.851 25426 25426 E ThreadManagerImpl: at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:101)
11-25 21:09:20.851 25426 25426 E ThreadManagerImpl: at android.os.Handler.handleCallback(Handler.java:959)
11-25 21:09:20.851 25426 25426 E ThreadManagerImpl: at android.os.Handler.dispatchMessage(Handler.java:100)
11-25 21:09:20.851 25426 25426 E ThreadManagerImpl: at android.os.Looper.loopOnce(Looper.java:232)
11-25 21:09:20.851 25426 25426 E ThreadManagerImpl: at android.os.Looper.loop(Looper.java:317)
11-25 21:09:20.851 25426 25426 E ThreadManagerImpl: at android.app.ActivityThread.main(ActivityThread.java:8592)
11-25 21:09:20.851 25426 25426 E ThreadManagerImpl: at java.lang.reflect.Method.invoke(Native Method)
11-25 21:09:20.851 25426 25426 E ThreadManagerImpl: at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:580)
11-25 21:09:20.851 25426 25426 E ThreadManagerImpl: at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:878)

1 post - 1 participant

Read full topic

Mobile App Notification Action Received but Automation not Firing

$
0
0

I am trying to get an actionable notification working. As a test, I have it turning off a light, but nothing is happening. I can see the mobile_app_notification_action event being received using developer tools and can also see the Wait for Trigger in my Automation being triggered in the UI. So it seems like HA is definitely receiving the action key but the light doesn’t turn off. I’ve verified that it works if I run just the light turn off action. Here is my code:

alias: Yoga Tuesdays
description: ""
triggers:
  - at: "08:30:00"
    trigger: time
conditions:
  - condition: time
    weekday:
      - tue
actions:
  - data:
      title: Yoga Time!
      message: Ready to get bendy?
      data:
        importance: high
        actions:
          - action: YES_YOGA
            title: Yoga!
        notification_icon: mdi:yoga
    action: notify.samson
  - wait_for_trigger:
      - trigger: event
        event_type: mobile_app_notification_action
        event_data:
          action: YES_YOGA
    enabled: true
    continue_on_timeout: true
  - action: light.turn_off
    metadata: {}
    data: {}
    target:
      entity_id: light.living_room_double_plug_astronaut_light
mode: restart

Any idea what I’m missing?

1 post - 1 participant

Read full topic

Newbie - Adding Z-wave JS integration issue

$
0
0

I am very new to this and can’t seem to add the integration. I’m running HA on a NUC.

This is the sequence of events.

  1. Add integration, i get a window Enter the Z-Wave JS add-on configuration. The USB device path shows my Sonoff Zigbee 3.0 USB dongle. I select the USB, leave the key values as blank and click Submit.
  2. Another window, ‘The Z-Wave JS add-on is starting’ ‘Please wait while the Z-Wave JS add-on start completes. This may take some seconds’. A spinning circle appears for a few minutes, and then another window ’ Z-Wave, failed to start the Z-Wave JS addon’.

If i look at the addon after the above, the addon is there, but is not started.

If i start the addon and try adding the integration, i get a ‘Failed to Connect’ error.

The log has the following
Logger: homeassistant.components.zwave_js.config_flow
Source: components/zwave_js/config_flow.py:248
integration: Z-Wave (documentation, issues)
First occurred: 9:27:58 PM (1 occurrences)
Last logged: 9:27:58 PM

Failed to start Z-Wave JS add-on: timeout

What am i doing wrong, and what do i need to do to fix this?

1 post - 1 participant

Read full topic



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