I have been trying to configure my inputs every way but never result in a workable solution;
my latest attenpt has script as follows with errors thereafter.
I use serial 9600 8,N,1 all hardware working fine for sending data just cannot configure inputs
Latest trial script;
`
-
name: “keep_door”
unique_id: keep door
address: 0
scan_interval: 5
slave: 113
device_class: ‘door’
input_type: discrete_input
slave_count: 8lights:
- name: “pond_pump”
address: 0
slave: 110
and error thrown by integration;
- name: “pond_pump”
Logger: homeassistant.config
Source: components/modbus/validators.py:150
First occurred: 14 September 2022 at 15:30:42 (1 occurrences)
Last logged: 14 September 2022 at 15:30:42
Unknown error calling modbus CONFIG_SCHEMA
Traceback (most recent call last):
File “/usr/src/homeassistant/homeassistant/config.py”, line 832, in async_process_component_config
return component.CONFIG_SCHEMA(config) # type: ignore[no-any-return]
File “/usr/local/lib/python3.9/site-packages/voluptuous/schema_builder.py”, line 272, in call
return self._compiled([], data)
File “/usr/local/lib/python3.9/site-packages/voluptuous/schema_builder.py”, line 595, in validate_dict
return base_validate(path, iteritems(data), out)
File “/usr/local/lib/python3.9/site-packages/voluptuous/schema_builder.py”, line 387, in validate_mapping
cval = cvalue(key_path, value)
File “/usr/local/lib/python3.9/site-packages/voluptuous/validators.py”, line 229, in _run
return self._exec(self._compiled, value, path)
File “/usr/local/lib/python3.9/site-packages/voluptuous/validators.py”, line 353, in _exec
v = func(path, v)
File “/usr/local/lib/python3.9/site-packages/voluptuous/schema_builder.py”, line 818, in validate_callable
return schema(data)
File “/usr/src/homeassistant/homeassistant/components/modbus/validators.py”, line 150, in scan_interval_validator
for entry in hub[conf_key]:
TypeError: ‘NoneType’ object is not iterable
Please, please, can anyone produce the correct script to input eight discreet inputs in one read
Not reading coil status but eight discreet inputs as modbus protocol allows
sent data (command) should look like ; 01 02 00 00 00 08 79 CC
received data will be returned as 01 02 01 00 A1 88
That’s address one, function two, one byte, and checksum returned.
works perfectly with a monitor programme.
Any help very welcome!