npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

homebridge-loxone-connect-pieter

v1.1.7

Published

Homebridge plugin for controlling Loxone.

Downloads

14

Readme

This is a Fork of activebyte's loxone connect plugin

It seems Activebyte has the most up-to-date and maintained loxone plugin for homebridge. The purpose of this fork is improving and fitting my use-case.

homebridge-loxone-connect

Homebridge plugin for controlling Loxone.

❤️ One-time donation to Activebyte

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:

  • Lights (Switches, Dimmers and RGB/ Smart-actor RGBW leds)
  • Sensors (Temperature, Humidty, Light, Motion, Contact, Leak and Smoke)*
  • Switches (On/Off, Pushbutton, Stairwell)
  • Doorbell notification*
  • Valve, Sprinklers*
  • HomeKit trigger*
  • Window blinds
  • Alarm system
  • Outlet*
  • Gate
  • Lock*
  • Fan*

*Needs additional configuration, check assumptions. The only configuration required is the credentials to your Loxone miniserver.

Prerequisites

Homebridge Follow all the installation steps there.

Installation

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

Configuration

See config-sample.json for an example configuration.

Platform configuration

| Parameter | Note | | --- | --- | | host | IP of your loxone miniserver | | port | optional, port of your miniserver (default: 80) | | username | loxone username | | password | loxone password | | options | optional, check options | | alias | optional, check assumption aliases|

Options

| Parameter | Note | | --- | --- | | rooms | 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. | | StairwellSwitch | 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. | | moodSwitches | 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. | | alarmSystem | 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. | | alarmTrigerLevel | 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. | | autoLock | optional, whether the lock should automatically lock after being opened, default: "1". | | autoLockDelay | optional, time (in seconds) until the lock will auto lock if enabled, default: "5". |

Assumption aliases

| Parameter | Note | | --- | --- | | Outlet | Outlet alias. | | Lighting | Lighting alias. | | Doorbell | Contact sensor alias. | | Trigger | Trigger alias. | | Contact | Contact sensor alias. | | Motion | Motion sensor alias. | | Brightness | Light sensor alias. | | Temperature | Temperature sensor alias. | | Humidity | Humidity sensor alias. | | Leak | Leak sensor alias. | | Smoke | smoke sensor alias. | | Valve | Valve alias. | | Sprinklers | Sprinklers alias. | | Fan | Fan alias. | | Lock | Lock alias. |

For more information check assumptions.

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:

Lightbulb

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.

Outlet

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.

Fan

To make a fan accessory you have to give a switch the prefix "Fan".

Lock

To make a lock accessory you have to give a switch the prefix "Lock". *automatic locking can be configured.

Valve, Sprinklers

To make a valve or sprinkler accessory you have to give a switch the prefix "Valve" or "Sprinklers".

Sensors, Doorbell, Trigger

For the following accessory's you will have to use a "Virtual Status block" inside Loxone config to make the following sensors.

| Accessory | Note | | --- | --- | | Doorbell | Has to have prefix "Doorbell".The Doorbell will show 'Not compatible' but it will still send the notification. | | Trigger | Has to have prefix "Trigger".This can be used for Homekit automation like triggering a scene to become active. | | Contact sensor | Has to have prefix "Contact". | | Motion sensor | Has to have prefix "Motion". | | Light sensor | Has to have prefix "Brightness". | | Temperature sensor | Has to have prefix "Temperature". | | Humidity sensor | Has to have prefix "Humidity". | | Leak sensor | Has to have prefix "Leak". | | Smoke sensor | 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'.

Limitations

Rooms

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.

100 items

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.

Visualization password

Currently node-lox-ws-api does not support Loxone blocks with a visualization password on it. We are looking into solving this issue.

pushbuttons

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.

Problem solving

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.

License

The plugin is released under MIT license, which means you can do whatever you want with it as long as you give credit.

Credits

The original Loxone WS work was done by Sroose

Attribution goes towards Tommaso Marchionni. The structure of this code is based on his openHAB plugin.

The original HomeKit API work was done by Khaos Tian in his HAP-NodeJS project.

The homebridge component on which this plugin is built was created by Nick Farina.

I've made use of the NodeJS Loxone websocket API created by Ladislav Dokulil

Thanks to all contributors!