--
You received this message because you are subscribed to the Google Groups "TasmotaUsers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to sonoffusers...@googlegroups.com.
To view this discussion on the web, visit https://groups.google.com/d/msgid/sonoffusers/4f498690-4f5f-4938-a03a-ab2204f2d6c4n%40googlegroups.com.
Replied direct sorry
Sent from Mail for Windows
From: Philip Knowles
Sent: 06 February 2022 22:23
To: snx
Subject: RE: Reset counter after sending
rule1 on tele-counter#c1 do counter1 0 endon
Rule1 1
Regards
Phil K
Sent from Mail for Windows
--
Not surprising as Tasmota doesn’t have maths functions built in unless you compile it.
mult1 0.0002286 will scale var1 by 1/4375. You’ll probably need to set calcres to 7
Rule1
On tele-counter#c1 do backlog var1=%value%; mult1 0.0002286; publish stat/tasmota_460CE3/CUSTOMVALUE %var1%; counter 1 0 endon
To view this discussion on the web, visit https://groups.google.com/d/msgid/sonoffusers/4427876a-b22d-4d01-a536-565d3aa26e15n%40googlegroups.com.
Rule1
On tele-counter#c1 do counter1 0 endon