Espeasy mega Generic - Pulse counter change value

Moderators: grovkillen, Stuntteam, TD-er

Post Reply
Message
Author
met98
New user
Posts: 3
Joined: 17 Jan 2020, 17:02

Espeasy mega Generic - Pulse counter change value

#1 Post by met98 » 17 Jan 2020, 17:05

Hi is
is it possible to change the value of Generic - Pulse counter?
I would like to press the GPIO14 button to decrease the value by 1.

User avatar
ThomasB
Normal user
Posts: 1064
Joined: 17 Jun 2018, 20:41
Location: USA

Re: Espeasy mega Generic - Pulse counter change value

#2 Post by ThomasB » 18 Jan 2020, 00:26

Not directly. But you can create a rule that copies the counter value to a dummy var whenever the counter gets a new count. Then another rule can be used to decrement the dummy var whenever you press the button. You can then publish the dummy var or use it in other rules to control events.

- Thomas

met98
New user
Posts: 3
Joined: 17 Jan 2020, 17:02

Re: Espeasy mega Generic - Pulse counter change value

#3 Post by met98 » 20 Jan 2020, 13:30

ok thank you
is it possible to update the display value every second?

met98
New user
Posts: 3
Joined: 17 Jan 2020, 17:02

Re: Espeasy mega Generic - Pulse counter change value

#4 Post by met98 » 21 Jan 2020, 16:58

Fixed, I created a piece counter with forward, back and reset button with proximity sensor to read the pieces.
thank you

Post Reply

Who is online

Users browsing this forum: Ahrefs [Bot] and 39 guests