Page 1 of 1

Reset gas usage

Posted: Wed Aug 30, 2023 8:43 pm
by Joskep
Hello, i recently added my Toon 'meteradapter' to HomeAssistant.
Now it shows the historical gas usage (600+ m3 gas).
Where can i reset this value?
I would like to count from 0.
Do i have to edit a file in /mnt/data/qmf/var/hcb_rrd via Putty or is there a much easier way?

A possible option is to delete the .rra files within the RRD folder...but which one (or the whole RRD folder?) AND will the Toon make a new RRD folder when it reatarts?

Thanks!

Re: Reset gas usage

Posted: Thu Aug 31, 2023 1:23 am
by oepi-loepi
Why not reset of offset the counter value of your sensor in home assistant?

Re: Reset gas usage

Posted: Thu Aug 31, 2023 8:17 am
by Joskep
Thanks for the tip!

I did:

service: utility_meter.calibrate
target:
entity_id: sensor.toon_gas_used_cnt
data:
value: '0'

But the 'call service' button doesn't become green, so i didn.t work (without an error).
I will try a few other things, but if you have any advise...thats always welcome :-)

Re: Reset gas usage

Posted: Thu Aug 31, 2023 5:24 pm
by Joskep
Unfortunatly it didn't work.

When i go to 'developer' , 'services' and use this at Yaml:

service: counter.reset
data: {}
target:
entity_id: sensor.toon_gas_used_cnt


i see an green check mark. But after a few seconds the old value is visible :roll:

The same result with:

service: counter.reset
entity_id: sensor.toon_gas_used_cnt


and:

service: counter.set_value
data:
value: "0"
target:
entity_id: sensor.toon_gas_used_cnt


When i go to 'developer', 'status' and type "0" exactly the same result, a few seconds the sensor displays "0" but the the old value overwrites the 0


EDIT

A reboot did the trick. While rebooting i did the counter reset again and now its "0" .
Case closed :D