A Java library for the Open Web Net protocol
View Project on GitHub mvalla/openwebnet4j
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).
WHO=1
LightingWHO=2
AutomationWHO=4
Temperature control systemWHO=13
Gateway ManagementWHO=18
Energy ManagementWHO=15/25
CEN/CEN+ and DryContacts & IRThis 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>
// 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) {...}
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/
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:
(use just your credit card, no account or other info needed)
bitcoin:bc1qlnd8f6ffpega3w9phqn4hly34p52l6qpd9decp