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: 663
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
Vriesfde
Starting Member
Starting Member
Posts: 35
Joined: Sat Mar 10, 2018 10:55 am

Re: Reset gas usage

Post by Vriesfde »

Today I finally received a ‘slimme gasmeter’, for this the already smart powermeter was also replaced.

Added the gasmeter to toon (01 connected wit powermeter ) but the counter is not 0 as on the meter. It is showing -159,x cubic meter gas.

Any way to set this to actual value?
Toonz
Forum Moderator
Forum Moderator
Posts: 1894
Joined: Mon Dec 19, 2016 1:58 pm

Re: Reset gas usage

Post by Toonz »

Vriesfde wrote: Tue Oct 01, 2024 8:09 pm Today I finally received a ‘slimme gasmeter’, for this the already smart powermeter was also replaced.

Added the gasmeter to toon (01 connected wit powermeter ) but the counter is not 0 as on the meter. It is showing -159,x cubic meter gas.

Any way to set this to actual value?
I think this takes a day to settle down. Should be fine today.
member of the Toon Software Collective
Post Reply

Return to “Toon miscellaneous”