How to fill history data for new sensor that is based on another one

How can I fill history data for the integration sensor?

I’ve today added an energy sensor for my long-time washing machine smart plug

- platform: integration
  source: sensor.washing_machine_plug_power
  unique_id: washing_machine_energy
  name: "Washing Machine Energy"
  unit_prefix: k
  round: 2

How do I fill the data from yesterday for example? (I had sensor.washing_machine_plug_power for a while now but now I added washing_machine_energy)

Home assistant does not retroactively evaluate sensor history. The sensor will only have historical data from the time it was created.

Where is the data in the DB? Maybe I can insert it myself

1 Like