Counting the number of door openings. (Logic calculate does not work) [solved]

I want to count how many times a door is opened.

I have two Homey pro at different locations.

At one location the flow increases the variable.

At the other location the variable does not increase. Where it does not work I added an action where it sent a message to my phone. That worked so I know the magnetic contact and the flow works as intended.

What do I do wrong?

A big maybe: the variable has to have a value before you can add 1. Maybe it’s empty?

No idea if this can be the cause, but your first flow seems to have a space in front of the plus sign, your second flow doesn’t.

Press the flow’s test button and it should show an error msg.

I changed the language from Swedish to English to make the screenshots. Then I changed the language back.

Now it works.