Hi, I have a PM3250 (METSEPM3250 - PM3250 power meter - RS485 | Schneider Electric Global) with EW11. Connection is OK. Using Modbus Poll I receive correct data from the meter. On Hassio I tried:
modbus:
- name: ContatoreElettrico
type: tcp
host: 192.168.1.120
port: 502
sensors:
- name: Corrente I1
scan_interval: 30
address: 3020
unit_of_measurement: A
count: 1
data_type: float32
I receive this error:
2022-03-07 12:25:10 DEBUG (SyncWorker_1) [homeassistant.components.modbus.modbus] Pymodbus: ContatoreElettrico: Modbus Error: [Input/Output] No Response received from the remote unit/Unable to decode response
2022-03-07 12:25:10 DEBUG (SyncWorker_6) [pymodbus.client.sync] Connection to Modbus server established. Socket ('192.168.1.192', 51241)
2022-03-07 12:25:10 DEBUG (SyncWorker_6) [pymodbus.client.sync] New Transaction state 'SENDING'
2022-03-07 12:25:13 DEBUG (SyncWorker_6) [homeassistant.components.modbus.modbus] Pymodbus: ContatoreElettrico: Modbus Error: [Input/Output] No Response received from the remote unit/Unable to decode response
192.168.1.192 is Hassio IP.
192.168.1.120 is EW11 IP
The sensor value is a Float32 little endian byte swap
I tried also with
....
count: 2
data_type: float32
....
No luck
Any idea?
Nothing to do. I tried with that parameters, same result. I think something is wrong on my HA configuration, because I have no success with every modbus device.
Anyway I found a solution using Nodered. I get the register values using modbus integration of nodered and pass data to HA
Thanks
As you know, is there other HA integration (besides Nodered) that has a modbus library to import data from device?
You should try:
- name: Corrente I1
scan_interval: 30
address: 3019 #3020
unit_of_measurement: A
count: 2
data_type: float
In HA 0x1 = 1
In others modbus 0x1 = 0
Also tried. Nothing to do. I tried also with a clean instance of Hassio. Nothing to do. The only way is Nodered. Also with another modbus device I had same problem, but that time I found no solution, even with Nodered. I had to use modpoll.exe on windows and get the output for HA.
Anyway using #3019 register I have
data = self._check_read_buffer()
File "/usr/local/lib/python3.9/site-packages/pymodbus/client/sync.py", line 234, in _check_read_buffer
ready = select.select([self.socket], [], [], end - time_)
2022-03-10 14:44:30 WARNING (MainThread) [homeassistant.components.modbus.validators] Corrente I1 with float is not valid, trying to convert
2022-03-10 14:44:59 ERROR (SyncWorker_5) [homeassistant.components.modbus.modbus] Pymodbus: ContatoreElettrico: Modbus Error: [Input/Output] Modbus Error: [Invalid Message] No response received, expected at least 8 bytes (0 received)
hi , may i know how do u connect to the power meter ?