[ad_1]
Every year the openHAB community publishes a fresh release shortly before Christmas, and this year there is a new main version in the advent calendar. The 3.0 release brings some changes to the architecture including a uniform user interface and thus ends the balancing act between the purely code-based control of openHAB 1.x and the UI of openHAB 2.x.
The release finally cuts off the 1.x pigtail and dispenses with the compatibility layer integrated in version 2. This means that openHAB only has one uniform concept of bindings. In the course of the changeover, however, the community has implemented numerous new 1.x bindings in order to ensure the smoothest possible changeover. A Table on GitHub showswhich add-ons have been migrated accordingly.
At the technical level, so-called things represent devices with their sensors and actuators. As an abstraction, openHAB offers the concept of items as a comprehensible description of the unit. The semantic model tutorial lists as an example that the device
With version 3, semantic modeling is the recommended procedure for creating and managing smart home components with openHAB.
In the course of the alignment, there is only one uniform rule engine that integrates the rules written in openHAB’s own Domain Specific Language (DSL) into the user interface. In addition, rules can now also be created in JavaScript, Groovy and the Java implementation of Python Jython formerly known as JPython.
If you prefer a visual approach, you can now also use scripts for home automation with the Blockly programming language developed by Google which, like the Scratch language developed by MIT, enables code to be built in a graphical environment with predefined blocks.
[ad_2] Semantic models
openHAB brings with it a new user interface that is more contemporary on the one hand and can be adapted for different user groups and devices on the other. A basic concept is semantic modeling, in which the semantic tags introduced in version 2 but rarely used in the old release serve as the basis for describing the smart home.zwave:1231242:node12:switch
becomes a “living room lamp”.
Each item has the four properties of location, equipment, point and property, which in turn are interconnected. The former describes the location like living room, and the equipment contains information about the associated equipment, including battery, remote control or motion detector. Point describes the type or function such as alarm or measuring device, and Property contains the associated information or the measured or controlled value, for example the temperature.