Recording changes and other artifacts that affect plots

It's there a way to record things that you can later access via the data that they affect?

For example, today I added several new temperature and humidity devices, and in order to calibrate them along with two I already have, I moved the latter and now have them all in one place for comparison.

As a result, the readings from the existing two have changed significantly and will no longer be relevant until I move them back.

A lucky free may be able to rely on your memory, but I know mine :rofl: and would like to be able to have an icon appear in the graphs when this change happened, ideally with a tooltip to tell me what happened.

That does not exist in HA

Like an input_text sensor that records the location of the temp sensor over time and show that on the same graph as the temp readings?

Or adding a vertical line at some point in time to show when the sensor was moved?

None of those options work retroactively. Sure an input_datetime could work for events from now until the future, however you'd need to create one for every overlapping "event". Not really a manageable solution.

Anything that allows me to annotate an entity at a point in time, which is visible on any graph for that entity. Or better, annotate all entities that have a given label so I can apply the same note to multiple entities.

Right, there's nothing that automatically does that.

But, you can add annotation to Apexcharts.

apex_config:
  annotations:
    xaxis:
      - x: 1782363600000
        borderColor: white
        label:
          text: Moved Device
          orientation: horizontal
          style:
            color: '#111'

I guess the other issue is if the data isn't valid until they are calibrated and moved to their planned location, why keep that history?

I think it's useful. Looking at the behaviour of these sensors over the past couple of days is quite interesting, especially compared to two I have had for a few weeks.

Thanks for the tip.

Are you asking if you can retroactively change individual stored readings for various sensors in your HomeAssistant database to correct a calibration anomaly?

Yes you can, but it is fraught with danger if you don't get it perfect.

Tools to export your data, modify it, and re-impoet it exist. Ask if you want pointers to the ones often used. You can also use live SQL table commands to narrow your range of relevant cells and perform operations on each of them.

Strong advice: Take backups of your data first, and often, until you are confidant you only changed what you wanted.
Here be dragons. Don't attempt if you are not confident you can roll back mistakes.

Another option is to create a new sensor time stamped with the time/date the change happened, have only one entry recorded for that event, and include that added sensor in your plot as an indicator when it happened.

Thanks but that's not what I'm asking. I want to be able to add annotations to remind me of when things happened.