hello i want to read data from energy meter via rs485
is is socomec diris a10
here is my code
esphome:
name: licznik
friendly_name: Licznik
esp32:
board: esp32dev
framework:
type: arduino
# Enable logging
logger:
baud_rate: 0
# Enable Home Assistant API
api:
encryption:
key: "tctGjPcvXWgZftnJKkn6m+qHX3NbUqKxaCoRcp2Rqis="
ota:
- platform: esphome
password: "7433f474cf414f96300b1aa0ec06ea01"
wifi:
ssid: !secret wifi_ssid
password: !secret wifi_password
# Enable fallback hotspot (captive portal) in case wifi connection fails
ap:
ssid: "Licznik Fallback Hotspot"
password: "xTGlTwiO74py"
captive_portal:
uart:
id: mod_bus
rx_pin: GPIO3
tx_pin: GPIO1
baud_rate: 9600
stop_bits: 1
parity: EVEN
modbus:
id: modbus1
uart_id: mod_bus
flow_control_pin: GPIO5
modbus_controller:
- id: a8s
address: 0x5
modbus_id: modbus1
setup_priority: -10
update_interval: 5s
sensor:
- platform: modbus_controller
modbus_controller_id: a8s
name: "Hour Meter"
id: modbus_hour
register_type: read
address: 0xC850
unit_of_measurement: "h"
value_type: U_WORD
accuracy_decimals: 0
and i am getting errors
[19:13:07][D][modbus:125]: Modbus error function code: 0x84 exception: 1
[19:13:07][E][modbus_controller:090]: Modbus error function code: 0x4 exception: 1
[19:13:07][E][modbus_controller:099]: Modbus error - last command: function code=0x4 register address = 0xC850 registers count=1 payload size=0