Fibaro HC2 integration with openHAB

This is not a true binding, but rather a hack I have thrown together so I can gradually migrate from Fibaro Home Center 2 to openHAB. By using the exec binding to call this Python script, it is possible to get and set values of devices controlled by HC2. I also made a script generating related items and things.

It works by having one item for setting and one for getting the value of each device, as (AFAIK) the exec binding is “one way only”. The next step would be to generate pseudo items with corresponding rules which work both ways.

I have very little Python experience, and feedback and contributions are welcome. I hope this might be useful to someone.