It may not be anything you’re doing wrong, since I upgraded to the latest versions of HA my Modbus integration has stopped working, might be best to roll back a couple of versions and test on that, I’m going to wait a week first.
I am using Modbus via several means, Modbus via ESPhome and Thingsboard IOT gateway are still working, Modbus via HA integrated Modbus driver is not working.
Getting back to your issue, have you tried CAS Modbus Scanner to test your points? I don’t use any coils in my setup, only registers and inputs.
My code that worked before upgrade to version core-2022.4.5
- name: PW11
close_comm_on_error: true
delay: 5
timeout: 5
type: tcp
host: 192.168.5.169
port: 502
sensors:
- name: PW11 Meter 2 Line Voltage
unit_of_measurement: V
slave: 3
address: 0
count: 2
input_type: input
data_type: float
precision: 2
- name: EW11 Solar Test
close_comm_on_error: true
delay: 5
timeout: 10
type: tcp
host: 192.168.5.173
port: 502
sensors:
- name: EW11 Solar Test Voltage
unit_of_measurement: V
slave: 1
address: 0
count: 1
input_type: input
data_type: int
scale: 0.01
precision: 2
Correct, Do you have the modbus datasheet for your device as that should list all the registers? otherwise use CAS modbus scanner to poll the coils, once you can confirm with CAS then its a matter of copying the addresses, there is the possibility you may need to offset by one.