openwebnet4j

Logo

A Java library for the Open Web Net protocol

View Project on GitHub mvalla/openwebnet4j

Support this project!

Make a donation using:
paypal donate
buymeacoffee donate
bitcoin donate

openwebnet4j is a Java library for the Open Web Net protocol

It enables a Java client to communicate locally with a gateway supporting the Open Web Net protocol and to control devices in a BTicino/Legrand BUS/SCS system (MyHOME_Up ®) or ZigBee wireless system (MyHOME_Play ®, now out of production).

Supported features

Supported frames

Supported Open Web Net gateways

Dependency Management

Maven

This library is available via Maven Central repository by adding the dependency in your POM.xml:

    <dependency>
      <groupId>io.github.openwebnet4j</groupId>
      <artifactId>openwebnet4j</artifactId>
      <version>0.6.0</version>
    </dependency>

Usage example

// create BUS gateway connection with IP=192.168.1.50 and password=12345
BUSGateway myGateway = new BUSGateway("192.168.1.50", 20000, "12345");
myGateway.subscribe(this);
try {
    myGateway.connect();
    // turns light WHERE=51 ON
    Response res = myGateway.send(Lighting.requestTurnOn("51"));
    if (res.isSuccess()) {
        System.out.println("Request successful");
    }
    // requests status light WHERE=51
    myGateway.send(Lighting.requestStatus("51"));
} catch (OWNException e) {...}

Projects using the library

This library is used by the BTicino OpenWebNet binding of the official openHAB 3 distribution.

For more information on openHAB and the OpenWebNet binding see: https://www.openhab.org/addons/bindings/openwebnet/

Support this project

If you want to say “thanks!” and support this hobby project you can make a donation.

Donations will be used to buy new smart home hardware, or to get some good coffee/beer during the time and evenings spent on the project.

Example donations:
5€ “A coffee for you”, 15€ “Thank you!”, 25€ “I use it regularly and appreciate your work”, 25+€ “Could you prioritize new feature XYZ?” (specify which feature in the donation message).

Any donation is appreciated!

Make a donation using:

PayPal

BuyMeACoffee

(use just your credit card, no account or other info needed)

Bitcoin

bitcoin donate bitcoin:bc1qlnd8f6ffpega3w9phqn4hly34p52l6qpd9decp

Disclaimer