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

DNS errors in HOST log

$
0
0

Hi,
My HA works fine and I can’t notice any issues, except my HOST log show the following errors every minute (with different ports). The source 192.168.0.25 is my HA and the destination 192.168.0.1 is my Internet router. My network settings in HA point DNS to the correct external DNS-server (and not my router at 192.168.0.1).

2025-06-17 10:14:09.085 homeassistant dockerd[631]: time="2025-06-17T10:14:09.084403996Z" level=error msg="[resolver] failed to query external DNS server" client-addr="udp:192.168.0.25:46159" dns-server="udp:192.168.0.1:53" error="read udp 192.168.0.25:46159->192.168.0.1:53: i/o timeout" question=";.\tIN\t NS"

2025-06-17 10:15:10.085 homeassistant dockerd[631]: time="2025-06-17T10:15:10.085568584Z" level=error msg="[resolver] failed to query external DNS server" client-addr="udp:192.168.0.25:60437" dns-server="udp:192.168.0.1:53" error="read udp 192.168.0.25:60437->192.168.0.1:53: i/o timeout" question=";.\tIN\t NS"

I have a Home Assistant Operating System installed on a Raspberry Pi.
Does anyone know how to fix this issue? Thank´s in advance!

1 post - 1 participant

Read full topic


Get static IP to create HA in Synology NAS

$
0
0

try to get HA and Protainer CE working in Synology NAS DS420+ utilies container manager.

I created task schedule to successfully installed HA. only small issue is network is bridge mode that share my NAS IP. I perfer to get different static IP for HA. Not sure if it is possible. Reading net, someone suggest command but not working. As I am guru of coding. Try to get help from guru to correct my coding that runs in task schedule. So it can be easy upgrade when new HA version available.

The current working code is

docker run -d --name=home_assistant \
-e TZ=Australia/Sydney \
-v /volume1/docker/HAdata:/config \
--net=host \
--restart always \
homeassistant/home-assistant

it will create HA in bridge mode using NAS ip.

I try to add

    docker network create --driver bridge --subnet=192.168.10.0/24 my_net

code like

docker network create --driver bridge --subnet=192.168.10.0/24 my_net
docker run -d --net my_net --ip 192.168.10.10 --name=home_assistant \
-e TZ=Australia/Sydney \
-v /volume1/docker/HAdata:/config \
--net=host \
--restart always \
homeassistant/home-assistant

it doesn’t work. Anyone can help fix the coding

1 post - 1 participant

Read full topic

PJ1103B Wifi CT Clamp Integration

$
0
0

Hi, apologies for revisiting a topic that has been probably done to death, I would like to thank the previous contributors in helping me get so far with setting up Tuya Local and finding my devices. I wish to add to the dashboard an output showing total energy consumed in my garden office.

I am struggling to establish an entity for the associated device, I have queries Tuya development platform and believe I have got the right DPID for the “energy_forword_a” data point. I can see a value both in Tuya and HA (device logs) but when I come to setting up the device it stills shows as unavailable. These are the parameters I used to set up the device, manually setting what I believe to be the correct DPID by following the debug options within Tuya


Tuya reports a value that roughly corresponds to the tuyalocal device debug file suggesting that both Tuya Platfrom and Tuya Local are recieving the correct value against the query, however I cannot seem to get it to work as an entity/report

I have set the entity up, when prompted, as a sensor and by the default suggestion of switch but still get “not available” when reporting back on both the entity and device.

Any suggestions?

1 post - 1 participant

Read full topic

Watercounter Alarming

$
0
0

I am trying to create an automation for an alarm when water consumption has increased by X in the last X minutes.

Unfortunately, I do not know how to build the condition here.
Already tried a derivative sensor without luck.

A “watercounter” gets an increment for every 10 liters of water.
The water consumption is not permanently on. But only when flowers etc. are watered.
It has already been forgotten several times to switch the water off again. I would therefore like to continuously check whether the water consumption has been higher than 50 liters in the last hour.
So if 5 increments occur on "watercounter in less than 60 mins.

I would be grateful for any help.

3 posts - 2 participants

Read full topic

Octopus Energy Integration - Not able to change charge target

$
0
0

Have had the Modbus Octopus Integration working with no problems up until now, however, had to delete my Zappi charger from the octopus app and re-add the device … but since then … when I try to change the Charge Target or Target time … I get the following error

image

I am able to switch on the intelligent smart charge, change the charge mode etc … but not set the above … any ideas?

1 post - 1 participant

Read full topic

Restructuring Addon concept, leveraging docker compose

$
0
0

Hello!

TLDR:
I think we should/could rethink the whole add-on system leveraging docker compose

Long story

I’m using the debian supervised system and have to migrate.

I tried the home assistant OS approach with KVM. a nightmare. this is something that cannot scale and is too geek oriented

The whole division of the containerized approach and the home assistant os is too divisive. I would go for a unified solution in order to solve once and for all the problem

maybe, using docker compose and a bit over it (like updates notification and a little UI to change it) could be the way (something like the esphome approach)

what do you think?

7 posts - 5 participants

Read full topic

Reset a device when wifi has been temporarily lost

$
0
0

I have a VOIP box that needs to restart when internet signal has been interrupted. If I put a Zwave or Zigbee plug on the VOIP box, is there a way to create an automation that triggers when HA has lost internet (and got it back) that turns that plug OFF and then ON ?

1 post - 1 participant

Read full topic

Anybody know how to map the "Auto" and "Manual" modes of HomeKit fan accessory?

$
0
0

Dear all:

I’m trying to configure my Xiaomi fan in HomeKit via Home Assistant.
By default Home Assistant exposes all present modes as individual switches.
I noticed in HomeKit it seems to support native modes called “Auto” and “Manual” (please see attached screenshot). I’d like to map my current present modes (Natural Wind and Straight Wind) to the default modes to avoid the 2 switches and I kind of making it work with only one mode exposed called “Auto” and a template fan, however every time when I adjust speed or so the setting is overridden and even the underlying fan entity doesn’t reflect the change. Would like to ask if anybody has done something like this with HomeKit?
Many thanks in advance!

1 post - 1 participant

Read full topic


How to remove Blink cameras

$
0
0

I have deleted a couple of the cameras in my Blink system, but after two days of Googling, I still cannot figure out how to remove them from HA. This seems like such a basic function, that I feel I must be missing something obvious. I also plan to rename a few of them, and I suspect the process for that will be similar, but haven’t tried it yet. Is there a way for the Blink integration to refresh its list of cameras?

Version: core-2025.6.1
Installation type: Home Assistant OS

3 posts - 2 participants

Read full topic

(Data request failed with error: 'No network route' (205)

$
0
0

Hi all,
could someone tell me why I can’t control the device called “switch magazzino” even though the connection with the router “switch quado 1” is active? the connection with the coordinator is zero but with the router it is 35.
I report the complete error log:
z2m: Publish ‘set’ ‘state’ to ‘Switch magazzino’ failed: ‘Error: ZCL command 0xa4c138ea92f8304b/1 genOnOff.on({}, {“timeout”:10000,“disableResponse”:false,“disableRecovery”:false,“disableDefaultResponse”:false,“direction”:0,“reservedBits”:0,“writeUndiv”:false}) failed (Data request failed with error: ‘No network route’ (205))’

2 posts - 2 participants

Read full topic

Missing traces matching Log entries

$
0
0

I had an automation trigger this morning, and there are entries for it in the Logbook which refer to the specific automation.

However, in looking at the traces for that automation, there are none for that specific event.

Is there some configuration for tracing that might cause it to miss events?

3 posts - 2 participants

Read full topic

How to handle race condition of template fan set and get percentage values

$
0
0

Hi friends:
I’m trying to create a template fan for HomeKit based on an existing fan, the purpose is to expose oscillation as direction control (more user friendly in Homekit). The below is the template I created:

- platform: template
  fans:
    livingroom_homekit:
      friendly_name: "Living Room Fan Homekit"
      unique_id: livingroom_homekit

      # 1. On/off detection
      value_template: "{{ is_state('fan.zhimi_de_317588644_za4_s_2_fan', 'on') }}"

      # 2. Turn on/off actions
      turn_on:
        - action: fan.turn_on
          target:
            entity_id: fan.zhimi_de_317588644_za4_s_2_fan
      turn_off:
        - action: fan.turn_off
          target:
            entity_id: fan.zhimi_de_317588644_za4_s_2_fan

      # 3. Speed control
      percentage_template: "{{ state_attr('fan.zhimi_de_317588644_za4_s_2_fan', 'percentage') }}"
      set_percentage:
        - action: fan.set_percentage
          target:
            entity_id: fan.zhimi_de_317588644_za4_s_2_fan
          data:
            percentage: "{{ percentage }}"

      # 4. Preset modes support
      preset_modes:
        - "Direct Breeze"
        - "Natural Wind"
      preset_mode_template: "{{ state_attr('fan.zhimi_de_317588644_za4_s_2_fan', 'preset_mode') }}"
      set_preset_mode:
        - action: fan.set_preset_mode
          target:
            entity_id: fan.zhimi_de_317588644_za4_s_2_fan
          data:
            preset_mode: "{{ preset_mode }}"

      # 5. Oscillation (native support)
      oscillating_template: "{{ state_attr('fan.zhimi_de_317588644_za4_s_2_fan', 'oscillating') }}"
      set_oscillating:
        - action: fan.oscillate
          target:
            entity_id: fan.zhimi_de_317588644_za4_s_2_fan
          data:
            oscillating: "{{ oscillating }}"

      # 6. Use "direction" control in HomeKit to also toggle oscillation
      direction_template: >
        {% if state_attr('fan.zhimi_de_317588644_za4_s_2_fan', 'oscillating') %}
          forward
        {% else %}
          reverse
        {% endif %}
      set_direction:
        - action: fan.oscillate
          target:
            entity_id: fan.zhimi_de_317588644_za4_s_2_fan
          data:
            oscillating: "{{ direction == 'forward' }}"

So the problem I have is with speed control which accepts percentage from user. In Homekit when I adjust speed, it sends multiple values, and I have to deal with the race condition (an example) below:

  1. HomeKit send command 20
  2. Template fan instruct the real fan to change speed to 20
  3. HomeKit send command 50
  4. The real fan now has changed speed to 20
  5. The percentage_template returns 20, and the value 50 is ignored and no further command sent to the real fan.

This works fine if I expose the fan directly to HomeKit, however with a template in-between it creates the race condition as the example above. I’d like to ask how to handle such race condition? Many thanks in advance!

2 posts - 2 participants

Read full topic

Evcc and selecting vehicles

$
0
0

Hi everyone,

I use evcc and most of it is self explanatory.

During migration of the yaml into the UI I recognized that in yaml there is a name to identify the vehicle.
This is not the case in the UI.
However, if I want to select the vehicle in the UI I can do this using the title.

When I try to select the vehicle with the evcc entity select.evcc_garage_vehicle_name it’s not working because there is no name assigned using the UI to create the vehicle.

Is there any way to use the UI and still be able to select the vehicle using the select entity above?

Thanks

1 post - 1 participant

Read full topic

HAOS Network related issues

$
0
0

I have HAOS installed on bare metal (mini PC Beelink EQ12).
Everything is working well, but I have strange and incomprehensible things about network services.

  1. I have a host with two network adapters. The second adapter is disabled. But in the DNS logs, I constantly see the following messages:
[INFO] 172.30.32.1:32836 - 41593 "A IN enp2s0.local.hass.io. udp 38 false 512" NXDOMAIN qr,aa,rd 38 0.000100033s
[INFO] 172.30.32.1:60633 - 6726 "A IN enp2s0.local.hass.io. udp 38 false 512" NXDOMAIN qr,aa,rd 38 0.000365684s
[INFO] 172.30.32.1:33155 - 15446 "A IN enp2s0.local.hass.io. udp 38 false 512" NXDOMAIN qr,aa,rd 38 0.000096666s
[INFO] 172.30.32.1:43557 - 62536 "A IN enp2s0.local.hass.io. udp 38 false 512" NXDOMAIN qr,aa,rd 38 0.000102388s
  1. I have IPv6 completely disabled. But in the system information, I see a lot of assigned V6 ips.

This situation does not interfere with the work of “HA”, but I do not understand why this is happening.
Maybe someone knows and will explain whether this is correct or not and why it is so in general.
Thanks!

1 post - 1 participant

Read full topic

Adding Arbitrary Text (or labels) to a Badge

$
0
0

So I want a badge for every person in the house that displays info about a person, where they are, and when, and I can get the info from our phones, such as Name, Location, Last change, and Last Update…

Something like…

"Jon - Home - When: 3 hours ago - Updated: 1 hour ago"

but… it only displays the value and no text, where i’d want it to say: Name: Jon Location: Home When: 3 Hours Ago Updated: 1 Hour Ago but i cant find any way to put arbitrary text in a badge using the code editor. Am I going crazy?

I’ve read Badges - Home Assistant up and down and i just dont see anything. Some sort of code similar to:

type: entity 
show_name: true 
show_state: true 
show_icon: true 
entity: person.jon 
color: red 
name: Jon 
text1: When 
text2: Updated 
show_entity_picture: true 
icon: mdi:account-plus state_content:

* name
  * state,
  * text1,
  * last_changed,
  * text2,
  * last_updated,,

but i dont know what the code for “text1/2” is. I’ve tried value, and some other stuff.

ATM the badge says
"Jon - Home - 3 hours ago - 1 hour ago"

3 hours ago for what? It’s not labeled. I can’t label it manually. There is no unit available for describing what happened 3 hours ago.

1 post - 1 participant

Read full topic


Unable to setup modbus connection

$
0
0

Hi,

I try to setup a modbus connection between HA and a Growatt inverter. I bought a Modbus USB module. Iam running the 2025.5 HA verson on Proxmox. I do see the Modbus module in HA (see printscreen) but get an error. What do I wrong?

My coral USB and Zigbee USB sticks are working fine. So the passtrough Proxmox seems to work fine + I do see the Modbus USB module in HA

2025-06-17 19:07:02.173 WARNING (MainThread) [pymodbus.logging] Failed to connect [Errno 11] Could not exclusively lock port /dev/ttyUSB0: [Errno 11] Resource temporarily unavailable
2025-06-17 19:07:02.274 ERROR (MainThread) [custom_components.growatt_local.config_flow] Unexpected error when trying to get device info
Traceback (most recent call last):
  File "/config/custom_components/growatt_local/config_flow.py", line 264, in async_step_serial
    device_info = await get_device_info(server, user_input[CONF_ADDRESS])
                  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/config/custom_components/growatt_local/API/growatt.py", line 460, in get_device_info
    inverter_v120 = await device.get_device_info(HOLDING_REGISTERS_120, minimal_length, unit)
                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/config/custom_components/growatt_local/API/growatt.py", line 95, in get_device_info
    await self.read_holding_registers(item[0], count=item[1], slave=slave)
  File "/config/custom_components/growatt_local/API/growatt.py", line 152, in read_holding_registers
    data = await self.client.read_holding_registers(start_address, count=count, slave=slave)
                 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.13/site-packages/pymodbus/client/mixin.py", line 114, in read_holding_registers
    return self.execute(no_response_expected, pdu_reg.ReadHoldingRegistersRequest(address=address, count=count, dev_id=slave))
           ~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.13/site-packages/pymodbus/client/base.py", line 86, in execute
    raise ConnectionException(f"Not connected[{self!s}]")
pymodbus.exceptions.ConnectionException: Modbus Error: [Connection] Not connected[AsyncModbusSerialClient /dev/ttyUSB0:0]
2025-06-17 19:07:02.482 ERROR (MainThread) [pymodbus.logging] No response received after 3 retries, continue with next request

1 post - 1 participant

Read full topic

Zigbee2mqtt stopped working - prevents boot

$
0
0

dear all,
my add-on stopped working. it prevents home assistant from booting.
used to work yesterday - I tried to replace a battery from a PARASOL-sensor and ist started to behave buggy…

as I cannot bring up home assistant anymore, I am stuck with the log in HA observer

any help possible? maybe: how to disable the zigbee2mqtt in some config?

2025-06-14 04:35:52.842 WARNING (MainThread) [supervisor.addons.options] Unknown option ‘serial’ for Zigbee2MQTT (45df7312_zigbee2mqtt)
2025-06-14 04:35:52.842 WARNING (MainThread) [supervisor.addons.options] Option ‘advanced’ does not exist in the schema for Zigbee2MQTT (45df7312_zigbee2mqtt)
2025-06-14 04:36:36.323 INFO (MainThread) [supervisor.docker.addon] Starting Docker add-on homeassistant/amd64-addon-whisper with version 2.6.0
2025-06-14 04:40:53.533 WARNING (MainThread) [supervisor.addons.options] Unknown option ‘serial’ for Zigbee2MQTT (45df7312_zigbee2mqtt)
2025-06-14 04:40:53.533 WARNING (MainThread) [supervisor.addons.options] Option ‘advanced’ does not exist in the schema for Zigbee2MQTT (45df7312_zigbee2mqtt)
2025-06-14 04:42:21.047 INFO (MainThread) [supervisor.resolution.check] Starting system checks with state running

1 post - 1 participant

Read full topic

Frigate Blueprint never triggers, assume problem with MQTT config

$
0
0

My setup is as follows:

HASS as a VM on a NUC with a Coral TPU passthrough the NUC
Frigate as an add-on through HACS
Frigate integration
Mosquitto Broker as an addon
Frigate blueprint used from here: HA_blueprints/Frigate_Camera_Notifications at main · SgtBatten/HA_blueprints · GitHub

The automation based on this blueprint never gets triggered and I can’t understand why.

My frigate.yml

mqtt:
  host: core-mosquitto
  port: 1883
  user: frigate
  password: <snip>

My Mosquitto broker

logins:
  - username: frigate
    password: <snip>
require_certificate: false
certfile: fullchain.pem
keyfile: privkey.pem
customize:
  active: false
  folder: mosquitto

And I see that my automation never gets triggered. Even when there is a detection which I can see. I’ve installed MQTT Explorer addon as well and it shows frigate (see image) but still no trigger. When I try to publish frigate/events or frigate/reviews the automation is also not triggered.

No clue what’s going wrong, can you help?

1 post - 1 participant

Read full topic

SmartGateways.nl ... Entities not available via MQTT

$
0
0

I’m using MQTT dongle from SmartGateways.NL
It is connected to my SmartMeter and it is connected to HA-MQTT, but the Entities do not become available.
This is my first MQTT integration, and I think I must have made a mistake setting it up. I verified all the docs, but I could not find what I missed.

The documentation says to leave the prefix field in the smartGateway config empty; which I did

But then I see homeassistant in the topic name in HA. Is that correct?


Where are those missing entities (supposed to be) created ?
Where should I start troubleshooting?
Any tips are greatly appreciated
thanks
/chriV

1 post - 1 participant

Read full topic

What seems like an old error. Current version 2025.6.1

$
0
0

I apologize if this is documented somewhere but I could not find it. What seems to have been fixed in 2025.2 is just now happening to me.

Error on the simplest of new automations.

“Your new automation has saved, but waiting for it to setup has timed out. This could be due to errors parsing your configuration.yaml, please check the configuration in developer tools. Your automation will not be visible until this is corrected, and automations are reloaded. Changes to area, category, or labels were not saved and must be reapplied.”

default_config:
frontend:
  themes: !include_dir_merge_named themes
  extra_module_url:
    - /local/community/custom-brand-icons/custom-brand-icons.js
automation: !include automations.yaml
script: !include scripts.yaml
scene: !include scenes.yaml

1 post - 1 participant

Read full topic

Viewing all 112693 articles
Browse latest View live


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