Hello,
I am currently collecting data from two electricity meters via IR read heads that send data via Vzlogger using MQTT. From the MQTT topics sensors are provided which I use in the energy dashboard, among other things.
Now I would like to replace the IR read heads with Tasmota Wifi read heads. As Tasmota can also provide the data directly, I will no longer need the Vzlogger in future. I would send the data via MQTT again.
Now I ask me whether and if so, what I need to consider so that the historical data is not lost.
Should I simply adapt the state_topics of the existing sensors to the new topics and, if necessary, change the value template or is there a better way?
This is how my current configuration looks like
mqtt:
sensor:
- name: "Stromverbrauch Oben gesamt" # 1.8.1 Zähler oben
state_topic: "vzlogger/data/chn0/raw"
device_class: energy
state_class: total_increasing
value_template: "{{value | round(2) }}"
unit_of_measurement: kWh
- name: "Stromverbrauch Oben aktuell" # 1.7.0 Zähler oben
state_topic: "vzlogger/data/chn1/raw"
device_class: power
state_class: measurement
value_template: "{{(value | float *1000) | round (3) }}"
unit_of_measurement: W
- name: "Strombezug Haus" # 1.8.0 Bezug vom Versorger - Hauptzähler
state_topic: "vzlogger/data/chn2/raw"
device_class: energy
state_class: total_increasing
value_template: "{{(value | float / 1000) | round(2) }}"
unit_of_measurement: kWh
- name: "Aktuelle Leistung" # 16.7.0 Aktuelle Leistung Haus
state_topic: "vzlogger/data/chn3/raw"
device_class: power
state_class: measurement
value_template: "{{(value | round (3)) }}"
unit_of_measurement: W
- name: "Einspeisung PV" # 2.8.0 Einspeisung PV
state_topic: "vzlogger/data/chn4/raw"
device_class: energy
state_class: total_increasing
value_template: "{{(value | float / 1000) | round (2) }}"
unit_of_measurement: kWh
BR
René