Hi, im receiving MWh values in my energy dashboard, in stead of kWh. Someone a clue why? Its started after i added the solar panels.
Im receiving the data via the modbus integration:
This is what i have in my configuration.yaml:
modbus: !include modbus.yaml
This is what i have in my modbus.yaml:
- name: GROWATT_MTL
#RS485to USB voor Growatt MTL
type: serial
baudrate: 9600
bytesize: 8
method: rtu
parity: N
port: /dev/serial/by-id/usb-1a86_USB_Serial-if00-port0
stopbits: 1
sensors:
#3 Growatt
- name: Growatt_MTL_power
unique_id: Growatt_MTL_power
precision: 0
address: 12
scan_interval: 10
input_type: input
slave: 22
scale: 0.1
unit_of_measurement: W
state_class: measurement
device_class: power
- name: Growatt_MTL_load
unique_id: Growatt_MTL_load
precision: 1
address: 3
#scan_interval: 10
input_type: holding
slave: 22
unit_of_measurement: "%"
device_class: power
- name: Growatt_MTL_total_energy1
unique_id: Growatt_MTL_total_energy1
precision: 1
address: 29
input_type: input
slave: 22
scale: 0.1
data_type: uint16
unit_of_measurement: kWh
state_class: measurement
I made two helpers, Solar Production Power and Solar Production Energy.
The Power helpers has this:
Unit of Measurement = W
{{ states('sensor.growatt_mtl_power') | float(0) }}
Default precision (614)
Entity id = sensor.solar_production_power
Energy:
Unit of Measurement = kWh
{{ states('sensor.growatt_mtl_total_energy1') | float(0) }}
Device class = Energy
State class = total increasing
{{ Preview: Solar production energy 1,419.0 kWh}}
But im getting this in energy dashboard: