Im using esphome to communicate via modbus RTU with a Chint DDSU666 energy meter.
The communication part is working fine, but i cant seem to add the values to the energy tab. The sensor doesn’t show up on the drop down menu.
Can some one say what i am doing wrong?
Here is my .yaml file:
uart:
id: mod_bus
tx_pin: 17
rx_pin: 16
baud_rate: 9600
stop_bits: 1
modbus:
flow_control_pin: 5
id: modbus1
modbus_controller:
address: 0x001
modbus_id: modbus1
update_interval: 1s
setup_priority: -10
sensor:
- platform: modbus_controller
id: chint_voltage
name: Tensão
address: 0x2000
unit_of_measurement: V ## for any other unit the value is returned in minutes
device_class: voltage
register_type: holding
value_type: FP32
accuracy_decimals: 2
filters:
- multiply: 1
- platform: modbus_controller
id: chint_current
name: Corrente
address: 0x2002
unit_of_measurement: A ## for any other unit the value is returned in minutes
device_class: current
register_type: read
value_type: FP32
accuracy_decimals: 2
filters:
- multiply: 1
- platform: modbus_controller
id: chint_power
name: Potência Instantânea
address: 0x2004
device_class: power
unit_of_measurement: W ## for any other unit the value is returned in minutes
state_class: measurement
register_type: read
value_type: FP32
accuracy_decimals: 2
filters:
- multiply: 1000
- platform: modbus_controller
id: chint_frequency
name: Frequência
address: 0x200E
device_class: frequency
state_class: measurement
unit_of_measurement: Hz ## for any other unit the value is returned in minutes
register_type: read
value_type: FP32
accuracy_decimals: 2
filters:
- multiply: 1
- platform: modbus_controller
id: chint_energy_sold
name: Energia Vendida
address: 0x4000
unit_of_measurement: kWh ## for any other unit the value is returned in minutes
state_class: total_increasing
device_class: energy
register_type: read
value_type: FP32
accuracy_decimals: 2
filters:
- multiply: 1
- platform: modbus_controller
id: chint_energy_purchased
name: Energia Comprada
address: 0x400A
unit_of_measurement: kWh ## for any other unit the value is returned in minutes
state_class: total_increasing
device_class: energy
register_type: read
value_type: FP32
accuracy_decimals: 2
filters:
- multiply: 1
- platform: modbus_controller
id: chint_reactive_power
name: Potência Reativa
device_class: reactive_power
state_class: measurement
address: 0x2004
unit_of_measurement: var ## for any other unit the value is returned in minutes
register_type: read
value_type: FP32
accuracy_decimals: 2
filters:
- multiply: 1000
Hi José, I also try to read from a DTSU 666, I’am using the Solar Inverters Stick, a Growatt ShineWifi X, to read from the modbus. I’am receiving the inverters states just fine, but the last sensor is the smartmeter and I never can get it to work. Modbus address of the meter is correct.