Resetting device, or deleting history
Moderators: leecollings, remb0
-
- Posts: 2
- Joined: Monday 06 January 2014 12:37
- Target OS: Linux
- Domoticz version:
- Contact:
Resetting device, or deleting history
Hi!
I've been playing around with Domoticz and a couple of Oregon Scientific sensors, but the temperature log is all wrong, as I've had the sensors inside for a couple of days.
Is there any way to delete the history, so I can start recording from today, when the sensors have been properly mounted?
I've been playing around with Domoticz and a couple of Oregon Scientific sensors, but the temperature log is all wrong, as I've had the sensors inside for a couple of days.
Is there any way to delete the history, so I can start recording from today, when the sensors have been properly mounted?
- CopyCatz
- Developer
- Posts: 123
- Joined: Thursday 11 July 2013 17:28
- Target OS: -
- Domoticz version:
- Location: Outer Heaven
- Contact:
Re: Resetting device, or deleting history
Just delete the sensor and add it again?
-
- Posts: 1
- Joined: Wednesday 02 October 2013 15:49
- Target OS: Linux
- Domoticz version:
- Contact:
Re: Resetting device, or deleting history
I think you can just remove the device. i.e. Setup -> Device and then press the blue arrow for the sensor
-
- Posts: 2
- Joined: Monday 06 January 2014 12:37
- Target OS: Linux
- Domoticz version:
- Contact:
Re: Resetting device, or deleting history
Ah, I see. Was hopping for a clear button.
Thanks!
Thanks!
Re: Resetting device, or deleting history
I found the shift delete button but it does not always work, why isn't there a options to reset the whole history of the device, without deleting and re-adding it, or using sqlite?
-
- Posts: 21
- Joined: Sunday 25 March 2018 12:56
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
Re: Resetting device, or deleting history
One can but with notifications, other scripts/API calls that use the IDX number etc. it's a pain to keep recreatnig while PoCing/testing.
Agree that a "clear this devices" data would be good. /searches for feature request area/

-
- Posts: 30
- Joined: Saturday 27 October 2018 19:12
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
Re: Resetting device, or deleting history
+1 for clear sensor data by one+confirm click
Re: Resetting device, or deleting history
If you know your way around with Sqlite3, you can delete the data directly from the database. I only keep the last day logging of my motion sensors because they generate a lot of logging filling up the database.
/usr/bin/sqlite3 /home/pi/domoticz/domoticz.db "DELETE FROM lightinglog WHERE DeviceRowID IN (88,113,114,129) AND Date <= datetime( 'now', '-$DAYS day' );"
A similar thing can be done for your devices like: DELETE from <your database table> WHERE DeviceRowID = <idx of your device>;
/usr/bin/sqlite3 /home/pi/domoticz/domoticz.db "DELETE FROM lightinglog WHERE DeviceRowID IN (88,113,114,129) AND Date <= datetime( 'now', '-$DAYS day' );"
A similar thing can be done for your devices like: DELETE from <your database table> WHERE DeviceRowID = <idx of your device>;
Re: Resetting device, or deleting history
Hi,
According to the dump() information my custom device has reset() implemented.
But using it triggers the following response:
Error: dzVents: Error: (3.0.2) Method reset is not available for device "Cumulative E-costs" (deviceType=General, deviceSubType=Custom Sensor). If you believe this is not correct, please report.
Did I overlook something?
Thanks for any help!
According to the dump() information my custom device has reset() implemented.
But using it triggers the following response:
Error: dzVents: Error: (3.0.2) Method reset is not available for device "Cumulative E-costs" (deviceType=General, deviceSubType=Custom Sensor). If you believe this is not correct, please report.
Did I overlook something?
Thanks for any help!
- waaren
- Posts: 6028
- Joined: Tuesday 03 January 2017 14:18
- Target OS: Linux
- Domoticz version: Beta
- Location: Netherlands
- Contact:
Re: Resetting device, or deleting history
The dump() function show all attributes and all functions available for all device types. The ones available for your specific type can be found in
the wiki . The reset() function is only available for smoke detectors and it is not deleting device history but sets the alarm state to Off.
There is no command in dzVents or domoticz to delete device history.
Debian buster, bullseye on RPI-4, Intel NUC.
dz Beta, Z-Wave, RFLink, RFXtrx433e, P1, Youless, Hue, Yeelight, Xiaomi, MQTT
==>> dzVents wiki
dz Beta, Z-Wave, RFLink, RFXtrx433e, P1, Youless, Hue, Yeelight, Xiaomi, MQTT
==>> dzVents wiki
Re: Resetting device, or deleting history
Ah. Thanks waaren. I interpreted the sentencewaaren wrote: ↑Tuesday 09 June 2020 0:34The dump() function show all attributes and all functions available for all device types. The ones available for your specific type can be found in
the wiki . The reset() function is only available for smoke detectors and it is not deleting device history but sets the alarm state to Off.
There is no command in dzVents or domoticz to delete device history.
as in..all functions available for all device types..
.all food available for all people
I'll do a manual "reset" by recreating the sensor.
-
- Posts: 3
- Joined: Wednesday 04 August 2021 20:16
- Target OS: Windows
- Domoticz version:
- Contact:
Re: Resetting device, or deleting history
I was able to delete a single daily data point (temperature) from the monthly log graph on a mobile chrome browser with a quadruple click. Took a bit of experimentation to figure that out since a phone touchscreen doesn't really have the capability of a shift click.
Who is online
Users browsing this forum: Bing [Bot], Google [Bot] and 1 guest