ioBroker integrates different smart home protocols into a single easy interface
Cross-System Switching
Figure 3 shows an example that demonstrates how different smart home systems can exchange data using ioBroker. In this example, the ioBroker system supports three systems:
- Harmony Hub – an add-on hub for a Logitech universal remote control
- KNX – a standards-based building automation system
- Philips Hue – a lighting device, or more precisely, the Hue bridge, which manages the lighting device.
Although all three of these systems speak different languages, ioBroker lets you manage all three collections through a single interface.
Before you can integrate these three environments through ioBroker, you must configure each of the environments individually. For this example, I did the following:
- Created a
Television
activity via the Harmony Hub. - Created a KNX
Television
scene in the KNX system. - Taught all lamps via the Hue bridge.
The automation part now consists of the user selecting the KNX Television
scene by pressing the "Television" button on a Harmony remote control. The result of this scene is that the television switched on and the television lighting turned on via the Hue bridge.
The scene could also trigger other actions through the KNX bus, such as closing the blinds or dimming other light sources (outside the Hue system).
However, these transactions defined within the individual systems still have not achieved the integration possible through ioBroker. The ioBroker configuration will focus on building bridges between the Harmony Hub and KNX on the one hand and between KNX and the Hue system on the other.
Adapter Integration
In order for ioBroker to communicate with these subsystems, a total of four adapters are required:
- JavaScript:
javascript
(already exists after auto-discovery) - KNX system:
knx
- Logitech Harmony Hub:
harmony
- Philips Hue system/bridge:
hue
When installing the Philips Hue adapter, only the IP address of the Hue bridge is important (Bridge Address
field); you either create a new user or enter an existing user in the Bridge Users
field (Figure 4).
The Instances
option in the sidebar menu should list the newly added adapter named hue.0
and the status LED should turn green to indicate that the connection to the host (the Hue bridge) has been established. The Harmony adapter instance is created just as easily. The dialog box only requires two entries: the hub user and the hub password.
Slightly more configuration overhead is required for the KNX adapter. The wizard expects the IP address of the KNX IP interface or the KNX IP router, the corresponding port (3671), and the physical KNX address of the interface (say, 1.1.249). The wizard also offers to include an existing ETS project file (format .knxproj
). You can create the project file with the ETS software [3] via the export function. Importing the ETS file can take a few minutes on a small system such as a Rasp Pi.
The information in the KNX adapter configuration view (Figure 5) represents the KNX group settings contained in the ETS project file. The ioBroker objects that are created automatically after installing the adapters facilitate communication among the devices. Writing to one of these objects triggers an action on the connected system (such as retrieving a KNX scene). If the connected system generates information, the information is also reflected in an object within ioBroker.
The JavaScript adapter is usually installed during the auto-discovery process. For more debugging when programming in JavaScript, it is a good idea to activate the Expert view in the ioBroker Instances tab. Once the Expert view is activated, you can raise the log level from Info to Debug, which provides better console output during JavaScript development.
If all adapters are configured correctly, the Instances
view displays the green status LED for each adapter (Figure 6). By the way, you can also create multiple instances for an adapter. For example, a second existing Hue bridge could be included using the same procedure, but it would then have an instance name of hue.1
instead of hue.0
.
Communication via Objects
ioBroker automatically creates a large number of objects during the adapter installation. In the Object tab (Figure 7), you can open, modify, and inspect all objects in a hierarchical view. This central view of object data is one of the great strengths of ioBroker. In principle, the software handles the communication between the individual smart home systems. The view is refreshed automatically when objects change. It is also very easy to trigger an action in a connected system by manually overwriting the object value in the Value
column.
Communication with an external device is easy. The following example is intended to switch on a Hue light. In the object view, expand the hierarchical list until you find the objects you are looking for. The hierarchy is structured differently depending on the adapter. For example, the path for a Hue light would look like this:
hue.0 | Philips_hue | Liv | pendant_lamp_front
The designations Liv
(for living room) and pendant_lamp_front
come from the Hue bridge configuration and reflect the user settings at the time of Hue system commissioning.
When the last hierarchy level is expanded, ioBroker displays the usable objects. At this point, it is sufficient to change the value for the object in the Value
column from false
to true
to switch on the pendant_lamp_front
(Figure 7). In response to this, the level
object is automatically updated to 100
and bri
(brightness) to 254
.
Since the example is a multicolored LED luminaire, it makes sense to bring some color into play. If the effect
object is described by the colorloop
value, the Hue light permanently changes color. The value none
stops the show. More information about the Hue color model is available at the Phillips Hue developers website [4].
« Previous 1 2 3 Next »
Buy this article as PDF
(incl. VAT)
Buy Linux Magazine
Subscribe to our Linux Newsletters
Find Linux and Open Source Jobs
Subscribe to our ADMIN Newsletters
Support Our Work
Linux Magazine content is made possible with support from readers like you. Please consider contributing when you’ve found an article to be beneficial.
News
-
Rhino Linux Announces Latest "Quick Update"
If you prefer your Linux distribution to be of the rolling type, Rhino Linux delivers a beautiful and reliable experience.
-
Plasma Desktop Will Soon Ask for Donations
The next iteration of Plasma has reached the soft feature freeze for the 6.2 version and includes a feature that could be divisive.
-
Linux Market Share Hits New High
For the first time, the Linux market share has reached a new high for desktops, and the trend looks like it will continue.
-
LibreOffice 24.8 Delivers New Features
LibreOffice is often considered the de facto standard office suite for the Linux operating system.
-
Deepin 23 Offers Wayland Support and New AI Tool
Deepin has been considered one of the most beautiful desktop operating systems for a long time and the arrival of version 23 has bolstered that reputation.
-
CachyOS Adds Support for System76's COSMIC Desktop
The August 2024 release of CachyOS includes support for the COSMIC desktop as well as some important bits for video.
-
Linux Foundation Adopts OMI to Foster Ethical LLMs
The Open Model Initiative hopes to create community LLMs that rival proprietary models but avoid restrictive licensing that limits usage.
-
Ubuntu 24.10 to Include the Latest Linux Kernel
Ubuntu users have grown accustomed to their favorite distribution shipping with a kernel that's not quite as up-to-date as other distros but that changes with 24.10.
-
Plasma Desktop 6.1.4 Release Includes Improvements and Bug Fixes
The latest release from the KDE team improves the KWin window and composite managers and plenty of fixes.
-
Manjaro Team Tests Immutable Version of its Arch-Based Distribution
If you're a fan of immutable operating systems, you'll be thrilled to know that the Manjaro team is working on an immutable spin that is now available for testing.