
Deleting Sensor Data in Home Assistant
If you’re using Home Assistant to manage your smart home, chances are you rely on sensors for a variety of functions. From tracking temperature and humidity to monitoring energy consumption, sensors play a vital role in the automation and data collection processes. However, there may be times when the sensor data isn’t accurate, or you simply want to reset specific values, especially if your Home Assistant energy dashboard shows wrong values.
In this post, we’ll walk you through the steps on how to delete sensor data and reset it correctly to maintain accurate statistics. This is especially useful if you’re dealing with incorrect energy data in Home Assistant or managing your daily sensors.
Why Deleting Sensor Data is Important
When your energy data is incorrect, it can lead to a Home Assistant energy dashboard that shows inaccurate reports, which might affect your automation and decision-making. Deleting faulty data and resetting your sensors ensures your statistics remain accurate, helping you track consumption more effectively.
How to Correct Energy Data in Home Assistant
- Identify the Sensor with Wrong Data: Start by finding the sensor that is reporting incorrect data. Go to the Home Assistant energy dashboard or the list of entities to identify the sensor that needs correction. In this case we are going to delete some wrong values from a smart meter.
- Locate the Sensor in Home Assistant: Navigate to Developer Tools and select Statistics

- Search for the sensor you need to reset. This could be a Home Assistant statistics sensor like energy or temperature. In this case, we are going to search for a wrong value of the sensor Low Tariff Usage.
- Click on the icon which is placed on the left of the sensor you want to correct.
- Adjust a statistic dialog is displayed
- Search for the data on which the value has to be corrected. You can also click on OUTLIERS so Home Assistant can search for values which are probably wrong.

- The value which we are looking for is the first one in the list. Click on it and change the value to what it has to be, or just fill in “0” without quotes. Click Adjust when ready.

The value has been corrected. Just browse to the energy dashboard and notice that the dashboard is showing every value correct in the graphs.
Conclusion
Managing sensor data in Home Assistant is crucial for maintaining accurate automation and energy tracking. By understanding how to correct and delete wrong sensor data, you can ensure that your Home Assistant energy dashboard always reflects the correct values, allowing for better insights and control over your smart home environment.
This guide should help you resolve common issues like Home Assistant energy dashboard wrong values and keep your daily sensors running smoothly.
Track Water consumption in Home Assistant with the Watermeter Gateway
The Water Meter Gateway from Smart Gateways upgrades your traditional water meter into a smart device, offering real-time data on your water usage. You’ll be able to monitor your water consumption during various activities like showers, baths, handwashing, or garden irrigation via an intuitive dashboard. This clear overview helps you track usage and spot areas where you might reduce costs.
Installation is straightforward, and the gateway is designed to work with most analog water meters, including those from brands such as Itron, Actaris, Elster, and Honeywell. It integrates seamlessly with popular home automation platforms like Home Assistant, Domoticz, and Homey. For additional functionality, you can leverage open standards such as REST-API and MQTT for secure data transfer.
If you prefer not to use home automation software, you can opt for the Online Energy Dashboard subscription. With the provided installation guide, you can set up the gateway on your own. The sensor has an extendable range of up to 15 meters and is compatible with both version A and B water meters, depending on your model.
For more details, click here .

Monitor energy consumption with Home Assistant by connecting your Smart Meter with P1 port

In this guide, I’ll explain how you can connect your smart meter with Home Assistant. Home Assistant offers several options for adding a smart meter and monitoring energy consumption in real-time and by hour, day, week, month, and year. Recently, Home Assistant introduced the Energy Dashboard, which displays the energy consumption of the Smart Meter, Gas consumption, and water consumption in beautiful overviews. The beauty of smart meters in the Netherlands and Belgium is that they also provide gas consumption data. So, you can immediately display both gas and electricity consumption in Home Assistant using a single smart reader or P1 meter.

Hi Raoul,
Is-it normal, when I update a wrong data, the total of the sensor doesn’t change. In my “smartgateways_gasmeter-totaal”, I had a negative value. I updated-it to 0 but the total doesn’t change…
Thank you for your support
Vincent.
This manual does only reset the statistics for the standard home assistant energy dashboard. It does not work for the smart gateways dashboard because this does not work with statistics. For these dashboard you just have to wait a week before the data gets old and the correct data is shown.