Homebridge plugin for controlling Loxone.
There are a few variants from the original loxone homebridge plugin, but they all have the same problem. Most of them are abandoned and they don't work completely. Those are the two main reason that i made this plugin, i also added a lot of fun and useful stuff.
Feature requests are always welcome!
The plugin will be able to communicate with the following items from your Loxone setup:
*Needs additional configuration, check assumptions. The only configuration required is the credentials to your Loxone miniserver.
Homebridge Follow all the installation steps there.
Install the plugin through npm or download the files from here.
$ sudo npm install -g homebridge-loxone-connect
Or update to latest version when already installed:
$ sudo npm update -g homebridge-loxone-connect
See config-sample.json for an example configuration.
|IP of your loxone miniserver|
|optional, port of your miniserver (default: 80)|
|optional, check options|
|optional, check assumption aliases|
|optional, specify an array of interested rooms to filter on. If empty or not given, all elements are used. |
Example: specifying "rooms" : ["Kitchen", "Bedroom"] will limit your bridge to only elements from those 2 rooms.
|optional, choose the switch behavior of the Stairwell Light Switch, default: "pulse".|
Has 2 possible values:
pulse : Normal operation, light will stay on for fixed amount of time. This is the default in case not given.
on : Light will stay on as long as the switch is enabled.
|optional, displays Loxone moods (wich are part of LightControllerV2 elements) as seperate buttons, default: "none". |
Has 3 possible values:
none : does not include moods. This is the default in case not given.
all : include moods as actionable item.
* only : only include moods and filter out any other element.
|optional, choose between instant and delayed activation of the alarm, default: "delayedon". |
Has 2 possible values
delayedon : Alarm will be delayed. Default.
on : Alarm will be instantly on.
|optional, choose at what level the alarm notification will be send to HomeKit, default: "5". |
Has 6 possible values:
1 : Silent.
2 : Acustic.
3 : Optical.
4 : Internal.
5 : External.
6 : Remote.
|optional, whether the lock should automatically lock after being opened, default: "1".|
|optional, time (in seconds) until the lock will auto lock if enabled, default: "5".|
|Contact sensor alias.|
|Contact sensor alias.|
|Motion sensor alias.|
|Light sensor alias.|
|Temperature sensor alias.|
|Humidity sensor alias.|
|Leak sensor alias.|
|smoke sensor alias.|
For more information check assumptions.
To create the correct accessory type from Loxone items, some attribute parsing is required inside Loxone config.
The prefixes can be changed in assumption aliases.
Currently these assumptions are made:
To make a lightbulb accessory you have to give a switch the prefix "Lighting" or you can give it the lightning category. *You can use a different category name as long as the category has the lightning icon.
To make a lightbulb accessory you have to give a switch the prefix "Outlet" or you can give it the power category. *You can use a different category name as long as the category has the power icon.
To make a fan accessory you have to give a switch the prefix "Fan".
To make a lock accessory you have to give a switch the prefix "Lock". *automatic locking can be configured.
To make a valve or sprinkler accessory you have to give a switch the prefix "Valve" or "Sprinklers".
For the following accessory's you will have to use a "Virtual Status block" inside Loxone config to make the following sensors.
|Has to have prefix "Doorbell".|
The Doorbell will show 'Not compatible' but it will still send the notification.
|Has to have prefix "Trigger".|
This can be used for Homekit automation like triggering a scene to become active.
|Has to have prefix "Contact".|
|Has to have prefix "Motion".|
|Has to have prefix "Brightness".|
|Has to have prefix "Temperature".|
|Has to have prefix "Humidity".|
|Has to have prefix "Leak".|
|Has to have prefix "Smoke".|
The controls will be named like you named them in Loxone Config. Rename them through the iOS Home app to make it more intuitive for using with Siri. Eg LIGHT_KITCHEN can be renamed to 'main light' and added to room Kitchen. Then you can ask Siri to 'turn on the main light in the kitchen'.
The Homebridge/HAP protocol does currently not allow attaching the Loxone rooms to the accessories. That is a manual action to be done once using the IOS Home app (or the Eve app which is much more user-friendly).
Special note: organizing into rooms can be done from Eve, but renaming the items should (unfortunately) be done from the IOS Home app. Name changes in Eve are not reflected in Home and thus not known by Siri.
HomeKit has a limit of 100 accessories per bridge. If you have a large Loxone setup, try to filter unneeded items out either through a dedicated Loxone usergroup or in the checkCustomAttrs function.
Currently node-lox-ws-api does not support Loxone blocks with a visualization password on it. We are looking into solving this issue.
Since Homekit has no pushbutton concept, I implemented pushbuttons as switches in Homekit. Telling Siri to put them On will send a pulse to the pushbutton. In Homekit, they will appear to be On for a second.
If you have troubles getting the states on your iOS device, try removing the files in your 'persists' folder (usually in ~/.homebridge/persist) and restarting homebridge.
The plugin is released under MIT license, which means you can do whatever you want with it as long as you give credit.
The original Loxone WS work was done by Sroose
Thanks to all contributors!