Hi everyone,
I’m having this very strange problem when a Fingerbot switch is toggled in an automation.
I can reproduce the issue: When I trigger automation a UI button, the fingerbot reacts immediately. So far, so good.
But I’ve noticed lately that it’ll sometimes trigger once more, bringing itself out of sync with the state it represents. I have looked through the automation that is governing all triggers related to the Fingerbot and the issue is not there.
After that I had Logbook open and refreshed during the process and interestingly the state change happens is only written once - after the second toggle!
What could be going on here? Is there some retry mechanism going on messaging level messages (z2m) I should look into? Retries wouldn’t be optimal, as the action is not idempotent.
Currently I debug by looking Logbook and also seeing automations getting triggered - how can I peep into what’s going on under the hood?