Skip to article frontmatterSkip to article content
Site not loading correctly?

This may be due to an incorrect BASE_URL configuration. See the MyST Documentation for reference.

Helpers

Calibration

Nobody is perfect, sensors included. 🌑️

The calibration helper corrects a sensor that reads off. A temperature sensor that is always a degree too high, a humidity sensor a few percent too low, or a power plug that measures 10% too much: the helper gives you a new sensor with the corrected value.

How it worksΒΆ

The helper takes the value of the source sensor, multiplies it by the factor, and adds the offset:

corrected = value Γ— factor + offset

Most of the time, an offset is all you need. A sensor showing 21.3 Β°C while it is really 19.8 Β°C gets an offset of -1.5, and leaves the factor at 1. The factor is for sensors that are off by a percentage instead: a plug showing 110 W while it really uses 100 W gets a factor of 100 Γ· 110, so 0.909. Divide what it really is by what the sensor shows.

The offset is in the unit the source reports in. If you change the unit of the source later on, like from Β°C to Β°F, change the offset too.

Creating a calibration helperΒΆ

Add one directly to your own instance by selecting the My Home Assistant button below:

Open your Home Assistant instance and start setting up a new integration.

Or add one manually, using the following steps:

  1. From the Home Assistant sidebar, select Settings and next select Devices & Services.

  2. Select the Helpers tab.

  3. On the helpers page, in the bottom right corner, select the + Create helper button.

  4. From the list of helpers, select Calibration πŸ‘».

  5. Provide a name, and select the sensor to correct in the Source entity field.

  6. Fill in the Offset, and if needed the Factor.

  7. Select Submit. Done! πŸŽ‰

Want to see only the corrected sensor? Hide the source sensor in its entity settings.