Hi,
I have the following problem with modbus configuration in Home Assistant. Reading the temperature sensors via the modbus works fine, while when I try to run the thermostat, the system says that the syntax is wrong. What could be the problem?
my entry in configuration.yaml
modbus:
- type: tcp
host: 192.168.1.19
port: 8899
sensors:- name: Room1
slave: 1
address: 200
input_type: holding
unit_of_measurement: °C
count: 1
scale: 0.1
offset: 0
precision: 1
data_type: uint
scan_interval: 120 - name: Room2
slave: 1
address: 202
input_type: holding
unit_of_measurement: °C
count: 1
scale: 0.1
offset: 0
precision: 1
data_type: uint
scan_interval: 120
climates: - name: “Watlow F4T”
slave: 1
address: 200
input_type: holding
count: 1
data_type: custom
max_temp: 25
min_temp: 15
offset: 0
precision: 1
scale: 0.1
structure: “>f”
target_temp_register: 50
temp_step: 1
temperature_unit: C
- name: Room1
error:
Invalid config for [modbus]: Structure request 4 bytes, but 1 registers have a size of 2 bytes @ data[‘modbus’][0][‘climates’][0]. Got OrderedDict([(‘name’, ‘Watlow F4T’), (‘slave’, 1), (‘address’, 200), (‘input_type’, ‘holding’), (‘count’, 1), (‘data_type’, ‘custom’), (‘max_temp’, 25), (‘min_temp’, 15), (‘offset’, 0), (‘precision’, 1), (‘scale’, 0.1), (‘structure’, ‘>f’), (‘target_temp_register’, 50), (‘temp_step’, 1), (‘temperature_unit’, ‘C’), (‘scan_interval’, 15)]). (See /config/configuration.yaml, line 18).