Closed samuelrodelius closed 2 years ago
modbus documentation modbus source (message by IssueLinks)
Hey there @adamchengtkc, @janiversen, @vzahradnik, mind taking a look at this issue as it has been labeled with an integration (modbus
) you are listed as a code owner for? Thanks!
(message by CodeOwnersMention)
Please include the debug log, just showing the errors makes it very difficult to see the problem.
Let me know if I can provide any more input to help find the root-cause.
I also see this in the log-file in the UI: Logger: pymodbus.client.sync Source: /usr/local/lib/python3.9/site-packages/pymodbus/client/sync.py:707 First occurred: 18:00:02 (118 occurrences) Last logged: 18:10:36
Cleanup recv buffer before send: 0xff 0xbd 0xff 0xbf 0xbc 0xfd 0xff 0xff 0xc7 0xfc 0xef 0xff 0xff 0xff 0xef 0xff 0xcf 0xff 0xff 0xff 0xef 0xff 0xbb 0xef 0xf7 0xfe 0xff 0x75 0xcf 0x77 0xf7 0xff 0x7f 0x77 0xaf 0x6f 0xff 0xef 0xff 0xff 0x7f 0xbd 0xff 0xef 0xff 0xee Cleanup recv buffer before send: 0xfd 0x6d 0xa7 0xff 0xf5 0xf7 0xa6 0xf7 0xff 0xfc 0xdf 0xef 0xff 0xff 0xee 0xfb 0xff 0xaf 0xee 0xfe 0x75 0xf6 0xef 0xff 0xff 0xfe 0xf 0xff 0xbe 0xff 0x9d 0x14 0xef 0xff 0xfd 0xe7 0xdf 0x77 0x67 0xf7 0xef 0xef 0xf8 0xff 0xee 0xcf 0x77 0xff 0xff 0x97 0x7f 0x8e 0xef 0xff Cleanup recv buffer before send: 0xfe 0xbf 0xaf 0xff 0xfe 0xff 0xff 0xf6 0xff 0xff 0xed 0xef 0xaf 0xfb 0x3d 0xe5 0xff 0xff 0xff 0xef 0xff 0x3e 0xbf 0xad 0xfe 0xbe 0xff 0xff 0xee 0xd5 0xff 0xce 0xff 0xfe 0xfe 0xfe 0xff 0xfe 0xee 0xff 0xff 0xbc Cleanup recv buffer before send: 0xff 0xff 0x7f 0xff 0xf7 0xef 0xf5 0xff 0xef 0xc6 0x4f 0xef 0x73 0xfe 0xb7 0x1e 0xc7 0xff 0xff 0xff 0xbf 0xf7 0xbf 0x65 0xfe 0xff 0xff 0x5d 0xbf 0xff 0xef 0xfe 0xf7 0xff 0xfd 0xd9 0xf7 0xff 0x77 0xff 0xff Cleanup recv buffer before send: 0xef 0xff 0xef 0xca 0xff 0xef 0xcf 0xef 0x33 0xf2 0xbf 0x7e 0xff 0x6f 0xfd 0xef 0xfe 0xfe 0xff 0xef 0x7d 0xf3 0xff 0xff 0xff 0xe7 0xf3 0xce 0xbb 0x77 0xbb 0xdf 0x46 0x5f 0xee 0xf3 0xff 0xff 0xe7 0xff 0xef 0xff 0xeb 0xff 0xee 0xef 0xff 0x3c 0xfe 0xe6 0xff 0xf7 0xff 0xbd 0xff 0xe7 0xdb 0xef 0x7e 0xff 0xff 0xac 0xf6
Seems your usb is blocking communication, at least that is what the error messages say
Seems your usb is blocking communication, at least that is what the error messages say
Ok, could be a BIOS update I made some week ago then, I'll check some settings there. Thanks!
The issue remains after downgrading BIOS, I will need to verify that the usb2RS485 device I have is working properly. If its clear that the error is originating from outside of home assistant modbus integration then feel free to close the issue.
The problem
I have been running home assistant for many years and a similar modbus configuration the whole time, made some minor changes this summer when the modbus module configuration syntax was changed.
Since some week back I have an annoying error, after approx. 12-24 hours the modbus sensors and entities becomes unavailable, first it comes with long time between the state "unavailable" and then it gets more frequent until no value is read or can be sent.
A restart of home-assistant is not helping, I have to unplug and replug the USB2modbus device: Bus 003 Device 002: ID 0403:6001 Future Technology Devices International, Ltd FT232 Serial (UART) IC
I'm running Home assistant in a docker-container: image: homeassistant/home-assistant:latest devices:
home-assistant.log configuration.yaml.txt unavailable mobus sensors (The grey: "Otillgänglig" means unavailable in English) home-assistant-debug.log
What version of Home Assistant Core has the issue?
core-2021.11.3
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
modbus
Link to integration documentation on our website
https://www.home-assistant.io/integrations/modbus
Example YAML snippet
Anything in the logs that might be useful for us?
Additional information
The device I'm communicating with over modbus is a ventilation unit - Östberg 250 S EC, It has been working since 2018 without any issues and no changes has been done, I have restarted the ventilation unit after error started to occur but with no effect.
logging is enabled according to this: logger: default: error logs: homeassistant.components.modbus: debug pymodbus.client: debug