home-assistant / core

:house_with_garden: Open source home automation that puts local control and privacy first.
https://www.home-assistant.io
Apache License 2.0
74.06k stars 31.08k forks source link

onewire sensors unavailable #130996

Open ThomasCr opened 1 week ago

ThomasCr commented 1 week ago

The problem

Hi,

I have a problem with HA onewire setup. I have 3 locally connected DS9490 bus adapters with some DS18B20 sensors, but also one remote connected DS9490 bus with 3 other DS18B20 sensors. This one is connected in the following way: (from my /etc/owfs.conf)

server: server = rpitemp.home.lan:4304
server: timeout_network = 3

I also have a systemd task script running, which is checking for the remote connected devices and restart owserver in case the sensor is lost.

thomas@zentrale:~$ systemctl status ow-restart.service
○ ow-restart.service - Restart owserver if connection to rpitemp is missing
     Loaded: loaded (/etc/systemd/system/ow-restart.service; static)
     Active: inactive (dead) since Tue 2024-11-19 21:06:16 CET; 4min 10s ago
TriggeredBy: ● ow-restart.timer
    Process: 2477803 ExecStart=/bin/bash -c if ! test -f /mnt/1wire/28.BA764A030000/temperature; then /usr/bin/ping -q -c1 rpitemp >/dev/null && echo Restart OWServer; /usr/bin/systemctl restart owserver.servic>
   Main PID: 2477803 (code=exited, status=0/SUCCESS)
        CPU: 2ms

Nov 19 21:06:16 zentrale systemd[1]: Started Restart owserver if connection to rpitemp is missing.
Nov 19 21:06:16 zentrale systemd[1]: ow-restart.service: Deactivated successfully.

In HA I only connected the local ow-server instance.

But after some time, HA semse to loose connection to the remote connected sensors. I checked right now, the remote sensors reported last time on 3:00 AM. That time, the check script also restartet the ow-server.

thomas@zentrale:~$ journalctl -u ow-restart.service -n 400 | grep bash
Nov 18 00:57:24 zentrale bash[70051]: Restart OWServer
Nov 19 03:06:08 zentrale bash[17925]: Restart OWServer

HA only has a problem with the remote sensors, the locally connected sensors are availible. But the ow-server has a connection to the remote sensors. I also use owhttp to check the sensors.

What version of Home Assistant Core has the issue?

core-2024.11.2

What was the last working version of Home Assistant Core?

No response

What type of installation are you running?

Home Assistant Container

Integration causing the issue

onewire

Link to integration documentation on our website

https://www.home-assistant.io/integrations/onewire/

Diagnostics information

home-assistant_onewire_2024-11-19T20-27-23.429Z.log

Example YAML snippet

No response

Anything in the logs that might be useful for us?

2024-11-19 03:01:37.770 WARNING (SyncWorker_6) [homeassistant.components.onewire.onewirehub] Ignoring unknown device family/type (81/DS1420) found for device 81.BACC31000000
2024-11-19 03:01:37.860 WARNING (SyncWorker_6) [homeassistant.components.onewire.onewirehub] Ignoring unknown device family/type (81/DS1420) found for device 81.E5A031000000
2024-11-19 03:01:37.864 WARNING (SyncWorker_6) [homeassistant.components.onewire.onewirehub] Ignoring unknown device family/type (81/DS1420) found for device 81.3E8031000000
2024-11-19 03:01:55.649 WARNING (MainThread) [homeassistant.components.sensor] Setup of sensor platform onewire is taking over 10 seconds.
2024-11-19 03:01:56.459 ERROR (SyncWorker_23) [homeassistant.components.onewire.entity] Error fetching Temperatur data: [Errno 22] legacy - Invalid transaction: '/28.1C5B4A030000/temperature'
2024-11-19 03:02:05.809 ERROR (SyncWorker_4) [homeassistant.components.onewire.entity] Error fetching Temperatur data: [Errno 22] legacy - Invalid transaction: '/28.7F484A030000/temperature'
2024-11-19 03:05:05.821 WARNING (MainThread) [homeassistant.components.sensor] Updating onewire sensor took longer than the scheduled update interval 0:00:30
2024-11-19 03:06:11.254 ERROR (SyncWorker_48) [homeassistant.components.onewire.entity] Error fetching Temperatur data: timed out
2024-11-19 03:06:13.258 ERROR (SyncWorker_15) [homeassistant.components.onewire.entity] Error fetching Temperatur data: timed out
2024-11-19 03:06:15.261 ERROR (SyncWorker_63) [homeassistant.components.onewire.entity] Error fetching Temperatur data: timed out
2024-11-19 03:06:17.265 ERROR (SyncWorker_36) [homeassistant.components.onewire.entity] Error fetching Temperatur data: timed out
2024-11-19 03:06:19.270 ERROR (SyncWorker_14) [homeassistant.components.onewire.entity] Error fetching Temperatur data: timed out
2024-11-19 03:06:21.274 ERROR (SyncWorker_32) [homeassistant.components.onewire.entity] Error fetching Temperatur data: timed out
2024-11-19 03:06:23.277 ERROR (SyncWorker_61) [homeassistant.components.onewire.entity] Error fetching Temperatur data: timed out
2024-11-19 03:06:25.281 ERROR (SyncWorker_44) [homeassistant.components.onewire.entity] Error fetching Temperatur data: timed out
2024-11-19 03:06:27.285 ERROR (SyncWorker_27) [homeassistant.components.onewire.entity] Error fetching Temperatur data: timed out
2024-11-19 03:06:29.289 ERROR (SyncWorker_14) [homeassistant.components.onewire.entity] Error fetching Temperatur data: timed out
2024-11-19 03:06:31.293 ERROR (SyncWorker_35) [homeassistant.components.onewire.entity] Error fetching Temperatur data: timed out
2024-11-19 03:06:33.296 ERROR (SyncWorker_22) [homeassistant.components.onewire.entity] Error fetching Temperatur data: timed out
2024-11-19 03:06:35.300 ERROR (SyncWorker_24) [homeassistant.components.onewire.entity] Error fetching Temperatur data: timed out
2024-11-19 03:06:35.823 WARNING (MainThread) [homeassistant.components.sensor] Updating onewire sensor took longer than the scheduled update interval 0:00:30
2024-11-19 03:06:37.302 ERROR (SyncWorker_53) [homeassistant.components.onewire.entity] Error fetching Temperatur data: timed out
2024-11-19 03:06:39.305 ERROR (SyncWorker_11) [homeassistant.components.onewire.entity] Error fetching Temperatur data: timed out
2024-11-19 03:06:41.308 ERROR (SyncWorker_57) [homeassistant.components.onewire.entity] Error fetching Temperatur data: timed out
2024-11-19 03:07:07.825 ERROR (SyncWorker_14) [homeassistant.components.onewire.entity] Error fetching Temperatur data: timed out
2024-11-19 03:07:09.828 ERROR (SyncWorker_35) [homeassistant.components.onewire.entity] Error fetching Temperatur data: timed out
2024-11-19 03:07:11.833 ERROR (SyncWorker_17) [homeassistant.components.onewire.entity] Error fetching Temperatur data: timed out
2024-11-19 03:07:13.836 ERROR (SyncWorker_53) [homeassistant.components.onewire.entity] Error fetching Temperatur data: timed out
2024-11-19 03:07:15.840 ERROR (SyncWorker_11) [homeassistant.components.onewire.entity] Error fetching Temperatur data: timed out
2024-11-19 03:07:35.824 WARNING (MainThread) [homeassistant.components.sensor] Updating onewire sensor took longer than the scheduled update interval 0:00:30
2024-11-19 03:41:35.873 WARNING (MainThread) [homeassistant.components.sensor] Updating onewire sensor took longer than the scheduled update interval 0:00:30
2024-11-19 04:53:36.003 WARNING (MainThread) [homeassistant.components.sensor] Updating onewire sensor took longer than the scheduled update interval 0:00:30
2024-11-19 05:42:36.081 WARNING (MainThread) [homeassistant.components.sensor] Updating onewire sensor took longer than the scheduled update interval 0:00:30
2024-11-19 05:48:36.093 WARNING (MainThread) [homeassistant.components.sensor] Updating onewire sensor took longer than the scheduled update interval 0:00:30
2024-11-19 05:56:36.106 WARNING (MainThread) [homeassistant.components.sensor] Updating onewire sensor took longer than the scheduled update interval 0:00:30
2024-11-19 06:43:36.188 WARNING (MainThread) [homeassistant.components.sensor] Updating onewire sensor took longer than the scheduled update interval 0:00:30
2024-11-19 06:55:06.208 WARNING (MainThread) [homeassistant.components.sensor] Updating onewire sensor took longer than the scheduled update interval 0:00:30
2024-11-19 07:13:06.235 WARNING (MainThread) [homeassistant.components.sensor] Updating onewire sensor took longer than the scheduled update interval 0:00:30
2024-11-19 07:17:36.243 WARNING (MainThread) [homeassistant.components.sensor] Updating onewire sensor took longer than the scheduled update interval 0:00:30

Additional information

The 3 remote sensors are: 28.90644A030000 28.BA764A030000 28.5D5A4A030000

I know, there are some problems on the locally connected usb adapter, I think the logs show only them, not the remote ones..

home-assistant[bot] commented 1 week ago

Hey there @garbled1, @epenet, mind taking a look at this issue as it has been labeled with an integration (onewire) you are listed as a code owner for? Thanks!

Code owner commands Code owners of `onewire` can trigger bot actions by commenting: - `@home-assistant close` Closes the issue. - `@home-assistant rename Awesome new title` Renames the issue. - `@home-assistant reopen` Reopen the issue. - `@home-assistant unassign onewire` Removes the current integration label and assignees on the issue, add the integration domain after the command. - `@home-assistant add-label needs-more-information` Add a label (needs-more-information, problem in dependency, problem in custom component) to the issue. - `@home-assistant remove-label needs-more-information` Remove a label (needs-more-information, problem in dependency, problem in custom component) on the issue.

(message by CodeOwnersMention)


onewire documentation onewire source (message by IssueLinks)