Resetting device, or deleting history

Topics (not sure which fora)
when not sure where to post, post here and mods will move it to right forum.

Moderators: leecollings, remb0

Post Reply
nordemoniac
Posts: 2
Joined: Monday 06 January 2014 12:37
Target OS: Linux
Domoticz version:
Contact:

Resetting device, or deleting history

Post 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?
User avatar
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

Post by CopyCatz »

Just delete the sensor and add it again?
p2baron
Posts: 1
Joined: Wednesday 02 October 2013 15:49
Target OS: Linux
Domoticz version:
Contact:

Re: Resetting device, or deleting history

Post by p2baron »

I think you can just remove the device. i.e. Setup -> Device and then press the blue arrow for the sensor
nordemoniac
Posts: 2
Joined: Monday 06 January 2014 12:37
Target OS: Linux
Domoticz version:
Contact:

Re: Resetting device, or deleting history

Post by nordemoniac »

Ah, I see. Was hopping for a clear button.
Thanks!
trixwood

Re: Resetting device, or deleting history

Post 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?
Oxyandy
Posts: 2
Joined: Thursday 22 February 2018 8:47
Target OS: Windows
Domoticz version:
Contact:

Re: Resetting device, or deleting history

Post 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
emeyedeejay
Posts: 21
Joined: Sunday 25 March 2018 12:56
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Resetting device, or deleting history

Post 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/ :idea:
tvurce
Posts: 30
Joined: Saturday 27 October 2018 19:12
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Resetting device, or deleting history

Post by tvurce »

+1 for clear sensor data by one+confirm click
SweetPants

Re: Resetting device, or deleting history

Post 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>;
plugge

Re: Resetting device, or deleting history

Post 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!
User avatar
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

Post 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.
Debian buster, bullseye on RPI-4, Intel NUC.
dz Beta, Z-Wave, RFLink, RFXtrx433e, P1, Youless, Hue, Yeelight, Xiaomi, MQTT
==>> dzVents wiki
plugge

Re: Resetting device, or deleting history

Post 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.
sackett
Posts: 3
Joined: Wednesday 04 August 2021 20:16
Target OS: Windows
Domoticz version:
Contact:

Re: Resetting device, or deleting history

Post 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.
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest