Where can I download the source code of openHAB?

Can I modify the code to integrate an unsupported gateway?

1 Like

Read the openHAB doc about developing a binding
Yes you can. You are actively encouraged to do so provided you share the code in github

what gateway are you thinking about?

You might want to check if someone is not already busy on a binding.

Feibit gateway
the gateway produced by a Chinese company, Is a zigbee gateway

have you tried https://www.openhab.org/addons/bindings/zigbee/ ?