home-assistant / operating-system

:beginner: Home Assistant Operating System
Apache License 2.0
4.98k stars 977 forks source link

Modbus not working after latest OS update #2706

Closed Tontze closed 1 year ago

Tontze commented 1 year ago

Describe the issue you are experiencing

Modbus not working, connection timeout.

What operating system image do you use?

generic-x86-64 (Generic UEFI capable x86-64 systems)

What version of Home Assistant Operating System is installed?

Home Assistant OS 10.5

Did you upgrade the Operating System.

Yes

Steps to reproduce the issue

  1. Upgrade HaOs

Anything in the Supervisor logs that might be useful for us?

Logger: homeassistant.components.modbus.modbus
Source: components/modbus/modbus.py:400
Integration: Modbus (documentation, issues)
First occurred: 13:39:57 (1 occurrences)
Last logged: 13:39:57

Pymodbus: enervent: Modbus Error: [Connection] ModbusTcpClient(192.168.1.15:502): Connection unexpectedly closed 0.000667572021484375 seconds into read of 8 bytes without response from slave before it closed connection

Anything in the Host logs that might be useful for us?

2023-08-27 13:41:56.425 DEBUG (SyncWorker_4) [pymodbus.logging] Connection to Modbus server established. Socket ('192.168.1.7', 32780)
2023-08-27 13:41:56.425 DEBUG (SyncWorker_4) [pymodbus.logging] Current transaction state - WAITING_FOR_REPLY
2023-08-27 13:41:56.425 DEBUG (SyncWorker_4) [pymodbus.logging] Running transaction 180
2023-08-27 13:41:56.426 DEBUG (SyncWorker_4) [pymodbus.logging] SEND: 0x0 0xb4 0x0 0x0 0x0 0x6 0x0 0x3 0x0 0xd 0x0 0x1
2023-08-27 13:41:56.426 DEBUG (SyncWorker_4) [pymodbus.logging] New Transaction state "SENDING"
2023-08-27 13:41:56.427 DEBUG (SyncWorker_4) [pymodbus.logging] Changing transaction state from "SENDING" to "WAITING FOR REPLY"
2023-08-27 13:41:56.444 DEBUG (SyncWorker_4) [homeassistant.components.modbus.modbus] Pymodbus: enervent: Modbus Error: [Connection] ModbusTcpClient(192.168.1.15:502): Connection unexpectedly closed 0.015811681747436523 seconds into read of 8 bytes without response from slave before it closed connection

System information

System Information

version core-2023.8.4
installation_type Home Assistant OS
dev false
hassio true
docker true
user root
virtualenv false
python_version 3.11.4
os_name Linux
os_version 6.1.45
arch x86_64
timezone Europe/Helsinki
config_dir /config
Home Assistant Community Store GitHub API | ok -- | -- GitHub Content | ok GitHub Web | ok GitHub API Calls Remaining | 4681 Installed Version | 1.32.1 Stage | running Available Repositories | 1276 Downloaded Repositories | 22
Home Assistant Cloud logged_in | false -- | -- can_reach_cert_server | ok can_reach_cloud_auth | ok can_reach_cloud | ok
Home Assistant Supervisor host_os | Home Assistant OS 10.5 -- | -- update_channel | stable supervisor_version | supervisor-2023.08.1 agent_version | 1.5.1 docker_version | 23.0.6 disk_total | 234.0 GB disk_used | 15.8 GB healthy | true supported | true board | generic-x86-64 supervisor_api | ok version_api | ok installed_addons | Mosquitto broker (6.2.1), Zigbee2MQTT (1.32.2-1), Studio Code Server (5.10.1), Terminal & SSH (9.7.1), FTP (4.7.1), Z-Wave JS UI (1.15.7), ESPHome (2023.8.2), Home Assistant Google Drive Backup (0.111.1), MQTT Explorer (browser-1.0.1)
Dashboards dashboards | 1 -- | -- resources | 11 views | 7 mode | storage
Recorder oldest_recorder_run | August 18, 2023 at 10:27 -- | -- current_recorder_run | August 27, 2023 at 13:39 estimated_db_size | 380.11 MiB database_engine | sqlite database_version | 3.41.2
Sonoff version | 3.5.2 (2ad1cd7) -- | -- cloud_online | 3 / 3 local_online | 3 / 3

Additional information

No response

agners commented 1 year ago

Can you double check if this is really the operating system's fault by downgrading to the previous version again? (E.g. using ha os update --version 10.4)?

Tontze commented 1 year ago

Hm, does not seem to work after downgrading either, which is weird since it did work and stopped working after update ?

Tontze commented 1 year ago

Ok, i rebooted our home heating, and it came online after that.. So no problems here, i wish i had thought that earlier ..