Reset gas usage

If you don't know where to post, post here.

Moderators: marcelr, TheHogNL, Toonz

Post Reply
Joskep
Member
Member
Posts: 141
Joined: Sat Mar 09, 2019 11:07 pm

Reset gas usage

Post 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!
oepi-loepi
Advanced Member
Advanced Member
Posts: 636
Joined: Sat Feb 09, 2019 7:18 pm

Re: Reset gas usage

Post by oepi-loepi »

Why not reset of offset the counter value of your sensor in home assistant?
Joskep
Member
Member
Posts: 141
Joined: Sat Mar 09, 2019 11:07 pm

Re: Reset gas usage

Post 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 :-)
Joskep
Member
Member
Posts: 141
Joined: Sat Mar 09, 2019 11:07 pm

Re: Reset gas usage

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

Return to “Toon miscellaneous”