Hello i try to connect Omron PLC to Hassio by Modbus.
PLC Side there is NO problem because a test modbus protocol & connection with modbus tester software, so it is all OK. (i am able read and write PLC’s coils & register)
The problem is with Hassio.
I have error log for Binary Sensor & Switch
See below the detail of the error log.
The connection is by TCP
modbus:
name: plc_omron
type: tcp
host: 192.168.1.200
port: 502
timeout: 3
delay: 1
Have you some advise to resolve the problem ?
many thanks in advance for your time
bye
Paolo
Log Details (ERROR)
Logger: homeassistant.components.binary_sensor
Source: components/modbus/binary_sensor.py:61
Integration: Binary Sensor (documentation, issues)
First occurred: 23:30:49 (1 occurrences)
Last logged: 23:30:49
Error while setting up modbus platform for binary_sensor
Traceback (most recent call last):
File “/usr/src/homeassistant/homeassistant/helpers/entity_platform.py”, line 178, in _async_setup_platform
await asyncio.wait_for(asyncio.shield(task), SLOW_SETUP_MAX_WAIT)
File “/usr/local/lib/python3.7/asyncio/tasks.py”, line 442, in wait_for
return fut.result()
File “/usr/local/lib/python3.7/concurrent/futures/thread.py”, line 57, in run
result = self.fn(*self.args, **self.kwargs)
File “/usr/src/homeassistant/homeassistant/components/modbus/binary_sensor.py”, line 61, in setup_platform
hub = hass.data[MODBUS_DOMAIN][entry[CONF_HUB]]
KeyError: ‘hub1’
Log Details (ERROR)
Logger: homeassistant.components.switch
Source: components/modbus/switch.py:85
Integration: Switch (documentation, issues)
First occurred: 23:30:49 (1 occurrences)
Last logged: 23:30:49
Error while setting up modbus platform for switch
Traceback (most recent call last):
File “/usr/src/homeassistant/homeassistant/helpers/entity_platform.py”, line 178, in _async_setup_platform
await asyncio.wait_for(asyncio.shield(task), SLOW_SETUP_MAX_WAIT)
File “/usr/local/lib/python3.7/asyncio/tasks.py”, line 442, in wait_for
return fut.result()
File “/usr/local/lib/python3.7/concurrent/futures/thread.py”, line 57, in run
result = self.fn(*self.args, **self.kwargs)
File “/usr/src/homeassistant/homeassistant/components/modbus/switch.py”, line 85, in setup_platform
hub = hass.data[MODBUS_DOMAIN][hub_name]
KeyError: ‘hub1’
And when i try to increase the delay this is the rsult
Logger: homeassistant.components.modbus
Source: components/modbus/init.py:96
Integration: Modbus (documentation, issues)
First occurred: 23:30:47 (1 occurrences)
Last logged: 23:30:47
Parameter delay is accepted but not used in this version