Hi everybody,
I am kind of stuck on the final way to build some sensors for my energy dashboard. I get some Mqtt values and setting them in the config.yaml under the tab “Mqtt”. So, they show up in HA and I can select them in the energy dashboard, but something is missing in my yaml because the dashboard tells me that “the entity is not defined” Can somebody hint me to my logical mistake?
mqtt:
sensor:
- name: "WR PV Leistung"
state_topic: "modbus/0/holdingRegisters/35301 PV Total Power"
unit_of_measurement: "W"
device_class: energy
state_class: total
- name: "WR Netzeinspeisung"
state_topic: "modbus/0/holdingRegisters/36104 ActiveEtotalSell Total"
unit_of_measurement: "kWh"
device_class: energy
state_class: total_increasing
- name: "WR Netzbezug"
state_topic: "modbus/0/holdingRegisters/36120 ActiveEtotalBuy Total"
unit_of_measurement: "kWh"
device_class: energy
state_class: total_increasing
- name: "WR ActivePower"
state_topic: "modbus/0/holdingRegisters/36008 MeterTotalActivepower"
unit_of_measurement: "W"
device_class: energy
state_class: total
- name: "WR PV Produktion Gesamt"
state_topic: "modbus/0/holdingRegisters/35191 PV E-Total"
unit_of_measurement: "kWh"
device_class: energy
state_class: total_increasing
- name: "WR Batterie Ladung Gesamt"
state_topic: "modbus/0/holdingRegisters/35206 E-BatteryCharge"
unit_of_measurement: "kWh"
device_class: energy
state_class: total_increasing
- name: "WR Batterie Entladung Gesamt"
state_topic: "modbus/0/holdingRegisters/35209 E-BatteryDischarge"
unit_of_measurement: "kWh"
device_class: energy
state_class: total_increasing
- name: "WR Batterie Ladestand"
state_topic: "modbus/0/holdingRegisters/37007 BAT1 SOC"
unit_of_measurement: "%"
device_class: energy
state_class: total
- name: "WR Batterie Power"
state_topic: "modbus/0/holdingRegisters/35183 BAT1 Power"
unit_of_measurement: "W"
device_class: energy
state_class: total