openhab / openhab-addons

Add-ons for openHAB
https://www.openhab.org/
Eclipse Public License 2.0
1.86k stars 3.56k forks source link

[openwebnet] Add OpenWebNet Binding (with BUS and radio support) #5195

Closed mvalla closed 3 years ago

mvalla commented 5 years ago

Since about 1 year I have been developing and testing a new OpenWebNet OH2 binding for BTicino/Legrand home automation systems (MyHOME).

The binding has to be considered as an enhancement and replacement of the BTicino v1 binding, which has not been developed/supported anymore. This is also the first known openHAB 2 binding to support both BUS/SCS and BTicino ZigBee (using USB dongle).

Distinctive features

These WHOs (MyHOME sub-systems) are supported: WHO=1 Lighting (switches/dimmers), WHO=2 Automation (rollershutters), WHO=4 Thermoregulation (thermostats and sensors), WHO=15/25 CEN/CEN+ (scenario buttons and dry contact / IR sensors), WHO=18 Energy Management.

Several beta releases have been made available on GitHub and Eclipse Marketplace.

The binding is currently used in production and tested by 100/200 users (prudent estimate).

Main Community thread

https://community.openhab.org/t/bticino-openwebnet-new-openhab2-binding-ready-for-testing/43377/

README file

https://github.com/mvalla/openhab2-addons/blob/openwebnet/addons/binding/org.openhab.binding.openwebnet/README.md

GitHub repository

https://github.com/mvalla/openhab2-addons

A PR will be submitted soon to be included in 2.5.0.

Massi

davidgraeff commented 5 years ago

Nice. Every OH1->OH2 port is welcome and could indeed lead to a fast merge.

mvalla commented 5 years ago

Thank @davidgraeff . I will perform the suggested improvements before submitting PR. Main change will be to move to new build system, but I have seen good guides from maintainers.

Please note many users have already migrated from the OH1 binding to this one, so hopefully the merge will be really fast.

lolodomo commented 4 years ago

What about this other PR ? https://github.com/openhab/openhab2-addons/pull/3220 Is your implementation a replacement that adds more features ?

lolodomo commented 4 years ago

You did not open a PR yet ?

mvalla commented 4 years ago

@lolodomo compared to #3220, this one has a quite different design, but most importantly does support BUS gateways/devices (like the BTicino v1 binding does) , while the other is only for wireless zigbee gateways, AFAIK.

This implementation is currently used by quite few users, who have already migrated from BTicino 1.x binding.

I did not open a PR yet because I had to spend a lot of time in the migration to bnd-tools first, and then to solve a malfunctioning IDE due to the new build system (I use Eclipse).

Right now the situation is a bit better so, time permitting, I can clean up the code a bit and then create a first PR. My plan is to start with a limited set of devices (WHOs) supported, to make the PR simpler to review (less code), get it approved and then add more device in the following milestones.

mvalla commented 4 years ago

@lolodomo Now the first PR is ready #6213.