No właśnie chce iść na espHome…
sprawdźcie proszę czy to mniej więcej o taki zapis chodzi i czy adresacja jest dobrze przeze mnie odczytywana
1.2 MODBUS-RTU Address Information
Data register:
Lp. Address Format Data description Unit R/W
1 0000-0001 float A phase voltage V R
2 0002-0003 float B phase voltage V R
3 0004-0005 float C phase voltage V R
4 0006-0007 float AB line voltage V R
5 0008-0009 float BC line voltage V R
6 000A-000B float CA line voltage V R
7 000C-000D float A phase current A R
8 000E-000F Float B phase current A R
9 0010-0011 Float C phase current A R
uart:
id: mod_bus
tx_pin: GPIO1
rx_pin: GPIO3
baud_rate: 9600
stop_bits: 1
modbus:
flow_control_pin: GPIO2
id: modbus1
modbus_controller:
- id: epever
## the Modbus device addr
address: 0x01
modbus_id: modbus1
setup_priority: -10
sensor:
- platform: modbus_controller
modbus_controller_id: epever
id: Faza L1 napięcie
name: "phase_l1_voltage"
address: 0x0000
unit_of_measurement: "V" ## for any other unit the value is returned in minutes
register_type: read
value_type: U_WORD
accuracy_decimals: 1
- platform: modbus_controller
modbus_controller_id: epever
id: Faza L2 napięcie
name: "phase_l2_voltage"
address: 0x0002
unit_of_measurement: "V" ## for any other unit the value is returned in minutes
register_type: read
value_type: U_WORD
accuracy_decimals: 1
- platform: modbus_controller
modbus_controller_id: epever
id: Faza L3 napięcie
name: "phase_l3_voltage"
address: 0x0004
unit_of_measurement: "V" ## for any other unit the value is returned in minutes
register_type: read
value_type: U_WORD
accuracy_decimals: 1
- platform: modbus_controller
modbus_controller_id: epever
id: Faza L1 natężenie
name: "phase_l1_current"
address: 0x000C
unit_of_measurement: "A" ## for any other unit the value is returned in minutes
register_type: read
value_type: U_WORD
accuracy_decimals: 1
- platform: modbus_controller
modbus_controller_id: epever
id: Faza L2 natężenie
name: "phase_l2_current"
address: 0x000E
unit_of_measurement: "A" ## for any other unit the value is returned in minutes
register_type: read
value_type: U_WORD
accuracy_decimals: 1
- platform: modbus_controller
modbus_controller_id: epever
id: Faza L3 natężenie
name: "phase_l3_current"
address: 0x0010
unit_of_measurement: "A" ## for any other unit the value is returned in minutes
register_type: read
value_type: U_WORD
accuracy_decimals: 1