Why DSM node not working correctly

Why this node-red-contrib-dsm not working? I try to use it to count rf button clicks. On DSM input i get coun 1 or 2 or 3.

{
    "triggerInput": "count",
    "stateOutput": "payload",
    "currentState": "depressed",
    "states": {
        "pressed-once": {
            "1": "pressed-once"
        },
        "pressed-twice": {
            "2": "pressed-twice"
        },
        "pressed-thrice": {
            "3": "pressed-thrice"
        },
        "depressed": {
            "0": "depressed"
        }
    }
}

Could you post your flow?

See:

and please read the doc and go to the Wiki to see how you can use the dsm node.

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.