MQTT sensor bit storing data if the value is the same

Hi, I have following situation.

I have server that is reporting data to HA, through MQTT. Everything works. Only problem I have is that let’s say Power Consumption of my server:

sensor server-test-consump:
  platform: mqtt
  state_topic: "andromeda/idrac/power_consumption"
  name: "Sensor Test 2"
  device_class: power
  unit_of_measurement: "kWh"

The MQTT receives the value, but I have 2 issues

  1. History is not currently saved (Used to work until few days ago) - how can I enable history properly?
  2. When the server sends exact same value, the new value is not stored. (Noticed in Grafana that no new point is created, so I am forced to use Fill function) - how can I force MQTT to store every single value regardless if the current one is the same

use force_update : MQTT Sensor - Home Assistant

1 Like