Added CUxD support.
Added state invert for MAX! window contacts.
Merge pull request #1342 from gerrieg/homematic

[Homematic] Added CUxD support and state invert for MAX! window contacts.