Hi,
I’ve been using a modbus component in my HA integrations for years and I set up loads of sensors using custom data_type to read more than one holding register in one shot to optimize bus performancie.
All of the sudden, after update to latest release 2021.8.5 all my multiple register sensors stopped working, more over, they are not even showing up in HA entities list at all. I tried to change data_type parameter from custom to string but was not lucky as well.
My sensor config is as follows and it worked like a charm in 2021.6.4 release before last upgrade. I also noted that the code of sensor.py was completely redesigned on GitHub so I guess something went wrong there.
- platform: modbus
scan_interval: 5
registers:
- name: basement_floor_heating_sensor
hub: hub3
slave: 1
register_type: holding
register: 0
count: 52
data_type: string
structure: ">52h"
- name: ground_floor_heating_sensor
hub: hub3
slave: 2
register_type: holding
register: 0
count: 52
data_type: custom
structure: ">52h"
- name: first_floor_heating_sensor
hub: hub3
slave: 3
register_type: holding
register: 0
count: 52
data_type: custom
structure: ">52h"