Cannot include Aeotec Garage Door Opener

For reference, I have the same controller, and it workes for me.

Should not matter to much, but I run a modified version of v1.6.5 of the app, since the control of the garage door is inverted (reports open when closed and vice versa). Worked before with older version, even though the door status was wrong.

The hole implementation of the Aeotec garage door controller needs rework. It’s not just the issue I mentioned above. The mobile card is not built in a good way, where the button to close/open the door and the representation of the door state is the same button. It should have been done more like @TedTolboom made the IDLock, where one icon just represent the state of the door. And one toggle-button allows you to change that state.

I have reported it here, but I am afraid I am not a competent enough programmer to resolve this my self.

https://github.com/athombv/homey/issues/2568

[-1-] The Logic is reveresed for “locked/unlocked” state
The Garage door controller ZW062 seems to have reversed locked/unlocked logic, which @yhaugo. already tried to adress with this pull request. But this request got stuck and never implemented. This is needed.

[-2-] The class and mobile card is not really right for this driver
This is how the device shows up in homey. https://i.imgur.com/LTC0jFI.png.
The toggle switch is both the button to change the state of the door AND the representation of the tilt-sensor. I think these should be separated, one button to toggle the door to open/close. And one state to show if the door is opened or closed (locked or unlocked, since it is represented as a lock, not a door)

Best of all, would of course be if there where a class for doors, since this is not really a lock, but it’s the closes class there is i guess