Incremental vs. managed counter

Moderator: leecollings

Post Reply
cincuranet
Posts: 24
Joined: Sunday 01 October 2017 17:42
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Incremental vs. managed counter

Post by cincuranet »

Hi, anybody knows what's the difference between incremental and managed counter?
Wiley
Posts: 8
Joined: Thursday 24 January 2019 10:18
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Incremental vs. managed counter

Post by Wiley »

Looking for that too, nothing in the manuals
kimot
Posts: 104
Joined: Saturday 25 November 2017 17:18
Target OS: Raspberry Pi / ODroid
Domoticz version: v3.8153
Location: Czech Rep.
Contact:

Re: Incremental vs. managed counter

Post by kimot »

In DZVents for normal counter, you cannot send value to add to counter - only set counter value.
So if you need add value, you must read counter status ( "counter" ), add value and store new counter value. ( "updateCounter(value)"

For incremental counter you can use :

"incrementCounter(value)"

to increment couner value...
RPi2 Domoticz v 4.10717
10 x Sonoff Basic - ESPeasy
1 x Wemos D1 - ESPeasy
1 x Shelly Plus Plug S
1 x Sonoff S26 - ESPeasy
1 x Shelly 1
1 x MySensors HC-SR04
1 x MySenosrs wifi gateway
1 x RFLink
4x Cam IPC-T240H
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest