/cc @heifisch
This might be related to your PR #156 but it might not.
The problem is that the sensors sometimes report being closed/open even if they didn't change.

Maybe the integration processed some queued up action in a delayed manner, I'm not sure.
Maybe also related to #167 and #168.