Counting events with the Counter

ChristianChristian Administrator, Moderator Posts: 1,892 admin
edited June 5 in FAQs

Use the counter element on the project editor in order to count sensor events. This way you can

  • Get notified or trigger an actuator of your choice once a defined number of events has been reached
  • Count (rare) events and receive a notification including the total number of events counted so far each time a new event occurs

We recommend testing the counter setup with an Action Button for manually triggering the counter as well as a message actuator. This way you can test and understand the behavior of the counter most easily. Later you can replace with other sensors or actuators depending on you actual needs

  1. Sign in to Conrad Connect and create a new project.
  2. The counter is located under Functions / Other.


  1. Connect these project editor elements in a row Action Button - Counter - Pushover (or choose an alterative message actuator).

Use Case 1: Send me a push notification exactely when 3 events have been counted. Once this is done, reset the counter.

Start Index: Number you start counting with (=1 in most cases)
Stop Index: Last number to be counted
Step: set to 1 if you would like to count in a n+1 manner
Reset Option: IF 'True', counter will be reset to Start Index once Stop Index has been reached
Trigger on States: ON (or the respective sensor output)


Trigger on States: Done (actuator is only being triggered, if Stop Index has been reached
Message: Desired message for when counting is done

Use Case 2 Send me a notification with the current value each time the counter counts up

Start Index: In this use case set to '0' if you want to start counting with '1'
Stop Index: put a rather high number in here
Step: set to 1 if you would like to count in a n+1 manner
Reset Option: False, because we do not want to reset the counter
Trigger on States: ON (or the respective sensor output)

Trigger on States: Iterating (also bei jedem Weiterzählen)
Message: Desired message and the current value

Sign In or Register to comment.