Workflow Reentry

I’m getting a InfiniteLoopError in workflow 5cae00e2f3bb3d0009bf56a8

Is that because I’m using Device state as trigger and then in the end setting device state with some manipulated values?

How do I get around that?

Check out the answer to this post:

That worked perfect. Thanks