Page 1 of 1
Resetting device, or deleting history
Posted: Friday 10 January 2014 15:51
by nordemoniac
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?
Re: Resetting device, or deleting history
Posted: Friday 10 January 2014 16:03
by CopyCatz
Just delete the sensor and add it again?
Re: Resetting device, or deleting history
Posted: Friday 10 January 2014 16:04
by p2baron
I think you can just remove the device. i.e. Setup -> Device and then press the blue arrow for the sensor
Re: Resetting device, or deleting history
Posted: Friday 10 January 2014 16:33
by nordemoniac
Ah, I see. Was hopping for a clear button.
Thanks!
Re: Resetting device, or deleting history
Posted: Sunday 01 May 2016 4:43
by trixwood
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?
Re: Resetting device, or deleting history
Posted: Sunday 04 March 2018 8:33
by Oxyandy
trixwood wrote: ↑Sunday 01 May 2016 4:43
shift delete button
Thanks that works, hold shift, then click the data point you wish to remove
You are greeted with a prompt to delete
But I agree, it would be nice to 'reset' or delete all data in one hit
Re: Resetting device, or deleting history
Posted: Tuesday 19 June 2018 21:50
by emeyedeejay
p2baron wrote: ↑Friday 10 January 2014 16:04
I think you can just remove the device. i.e. Setup -> Device and then press the blue arrow for the sensor
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/

Re: Resetting device, or deleting history
Posted: Saturday 15 December 2018 15:12
by tvurce
+1 for clear sensor data by one+confirm click
Re: Resetting device, or deleting history
Posted: Saturday 15 December 2018 18:32
by SweetPants
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>;
Re: Resetting device, or deleting history
Posted: Tuesday 09 June 2020 0:05
by plugge
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!
Re: Resetting device, or deleting history
Posted: Tuesday 09 June 2020 0:34
by waaren
plugge wrote: ↑Tuesday 09 June 2020 0:05
According to the dump() information my custom device has reset() implemented.
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.
Re: Resetting device, or deleting history
Posted: Tuesday 09 June 2020 2:24
by plugge
waaren wrote: ↑Tuesday 09 June 2020 0:34
plugge wrote: ↑Tuesday 09 June 2020 0:05
According to the dump() information my custom device has reset() implemented.
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.
Ah. Thanks waaren. I interpreted the sentence
..all functions available for all device types..
as in
all food available for all people
.
I'll do a manual "reset" by recreating the sensor.
Re: Resetting device, or deleting history
Posted: Thursday 08 June 2023 15:28
by sackett
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.