with doorState (integer): The door state: 0 .. unavailable, 1 .. deactivated, 2 .. door closed, 3 .. door opened, 4 .. door state unknown, 5 .. calibrating
But no, there is no possibility to get a callback for state changes. But there is already a feature request for this you could support: