Giter Club home page Giter Club logo

homebridge-loxone-ws's People

Contributors

derflash avatar dgburtonbv avatar idoodler avatar nexus2k avatar sroose avatar xcid avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

homebridge-loxone-ws's Issues

Homebridge Loops After connection

Hi,

after installing the plugin at Homebridge the pi loops at startup and trying to get connected to Loxone.

Can anybody help? Here the log:

-- Logs begin at Mon 2020-04-27 18:17:01 CEST. --
Apr 27 18:53:08 raspberrypi sudo[723]: pam_unix(sudo:session): session closed for user root
Apr 27 18:57:29 raspberrypi homebridge[332]: [4/27/2020, 18:57:29] [Config] Changes to config.json saved.
Apr 27 18:58:11 raspberrypi systemd[1]: Stopping Node.js HomeKit Server...
Apr 27 18:58:11 raspberrypi homebridge[332]: [4/27/2020, 18:58:11] Got SIGTERM, shutting down Homebridge...
Apr 27 18:58:16 raspberrypi systemd[1]: homebridge.service: Main process exited, code=exited, status=143/n/a
Apr 27 18:58:16 raspberrypi systemd[1]: homebridge.service: Failed with result 'exit-code'.
Apr 27 18:58:16 raspberrypi systemd[1]: Stopped Node.js HomeKit Server.
Apr 27 18:58:16 raspberrypi systemd[1]: homebridge.service: Found left-over process 428 (homebridge-conf) in control group while starting unit. Ignoring.
Apr 27 18:58:16 raspberrypi systemd[1]: This usually indicates unclean termination of a previous run, or service implementation deficiencies.
Apr 27 18:58:16 raspberrypi systemd[1]: Started Node.js HomeKit Server.
Apr 27 18:58:17 raspberrypi homebridge[975]: [4/27/2020, 18:58:17] Loaded config.json with 0 accessories and 2 platforms.
Apr 27 18:58:17 raspberrypi homebridge[975]: [4/27/2020, 18:58:17] ---
Apr 27 18:58:18 raspberrypi homebridge[975]: [4/27/2020, 18:58:18] Loaded plugin: homebridge-config-ui-x
Apr 27 18:58:18 raspberrypi homebridge[975]: [4/27/2020, 18:58:18] Registering platform 'homebridge-config-ui-x.config'
Apr 27 18:58:18 raspberrypi homebridge[975]: [4/27/2020, 18:58:18] ---
Apr 27 18:58:19 raspberrypi homebridge[975]: [4/27/2020, 18:58:19] Loaded plugin: homebridge-http-opensprinkler-api
Apr 27 18:58:19 raspberrypi homebridge[975]: [4/27/2020, 18:58:19] Registering accessory 'homebridge-http-opensprinkler-api.OPENSPRINKLER-STATION'
Apr 27 18:58:19 raspberrypi homebridge[975]: [4/27/2020, 18:58:19] ---
Apr 27 18:58:19 raspberrypi homebridge[975]: [4/27/2020, 18:58:19] Loaded plugin: homebridge-loxone-ws-adv
Apr 27 18:58:19 raspberrypi homebridge[975]: homebridge API version: 2.5
Apr 27 18:58:19 raspberrypi homebridge[975]: [4/27/2020, 18:58:19] Registering platform 'homebridge-loxone-ws-adv.LoxoneWs'
Apr 27 18:58:19 raspberrypi homebridge[975]: [4/27/2020, 18:58:19] ---
Apr 27 18:58:19 raspberrypi homebridge[975]: [4/27/2020, 18:58:19] Loading 2 platforms...
Apr 27 18:58:19 raspberrypi homebridge[975]: [4/27/2020, 18:58:19] [Config] Initializing config platform...
Apr 27 18:58:19 raspberrypi homebridge[975]: [4/27/2020, 18:58:19] [Config] Spawning homebridge-config-ui-x with PID 1005
Apr 27 18:58:19 raspberrypi homebridge[975]: [4/27/2020, 18:58:19] [Hauptserver] Initializing LoxoneWs platform...
Apr 27 18:58:19 raspberrypi homebridge[975]: [4/27/2020, 18:58:19] [Hauptserver] Info: rooms array not configured. Adding every room.
Apr 27 18:58:19 raspberrypi homebridge[975]: [4/27/2020, 18:58:19] [Hauptserver] object
Apr 27 18:58:19 raspberrypi homebridge[975]: New WS: 10.0.10.55:80
Apr 27 18:58:19 raspberrypi homebridge[975]: [4/27/2020, 18:58:19] [Hauptserver] Platform - Waiting 8 seconds until initial state is retrieved via WebSocket.
Apr 27 18:58:20 raspberrypi homebridge[975]: [4/27/2020, 18:58:20] [Hauptserver] LOXONE WS: connect
Apr 27 18:58:24 raspberrypi homebridge[975]: [4/27/2020, 18:58:24] [Config] Homebridge Config UI X v4.16.0 is listening on :: port 8080
Apr 27 18:58:27 raspberrypi homebridge[975]: [4/27/2020, 18:58:27] [Hauptserver] Platform - Retrieving initial config from http://xxxxxxx:[email protected]:80/data/LoxApp3.json
Apr 27 18:58:28 raspberrypi homebridge[975]: [4/27/2020, 18:58:28] [Hauptserver] Platform - The widget 'Lichterkette' of type LightControllerV2 is an item not handled.
Apr 27 18:58:28 raspberrypi homebridge[975]: [4/27/2020, 18:58:28] TypeError: Class constructor PlatformAccessory cannot be invoked without 'new'
Apr 27 18:58:28 raspberrypi homebridge[975]: at LightbulbItem.AbstractItem (/usr/local/lib/node_modules/homebridge-loxone-ws-adv/items/AbstractItem.js:22:25)
Apr 27 18:58:28 raspberrypi homebridge[975]: at LightbulbItem.SwitchItem (/usr/local/lib/node_modules/homebridge-loxone-ws-adv/items/SwitchItem.js:12:23)
Apr 27 18:58:28 raspberrypi homebridge[975]: at new LightbulbItem (/usr/local/lib/node_modules/homebridge-loxone-ws-adv/items/LightbulbItem.js:6:26)
Apr 27 18:58:28 raspberrypi homebridge[975]: at exports.Factory.parseSitemap (/usr/local/lib/node_modules/homebridge-loxone-ws-adv/libs/ItemFactory.js:66:29)
Apr 27 18:58:28 raspberrypi homebridge[975]: at Request._callback (/usr/local/lib/node_modules/homebridge-loxone-ws-adv/index.js:88:38)
Apr 27 18:58:28 raspberrypi homebridge[975]: at Request.self.callback (/usr/local/lib/node_modules/homebridge-loxone-ws-adv/node_modules/request/request.js:185:22)
Apr 27 18:58:28 raspberrypi homebridge[975]: at Request.emit (events.js:310:20)
Apr 27 18:58:28 raspberrypi homebridge[975]: at Request. (/usr/local/lib/node_modules/homebridge-loxone-ws-adv/node_modules/request/request.js:1154:10)
Apr 27 18:58:28 raspberrypi homebridge[975]: at Request.emit (events.js:310:20)
Apr 27 18:58:28 raspberrypi homebridge[975]: at IncomingMessage. (/usr/local/lib/node_modules/homebridge-loxone-ws-adv/node_modules/request/request.js:1076:12)
Apr 27 18:58:28 raspberrypi homebridge[975]: [4/27/2020, 18:58:28] Got SIGTERM, shutting down Homebridge...
Apr 27 18:58:33 raspberrypi systemd[1]: homebridge.service: Main process exited, code=exited, status=143/n/a
Apr 27 18:58:33 raspberrypi systemd[1]: homebridge.service: Failed with result 'exit-code'.
Apr 27 18:58:43 raspberrypi systemd[1]: homebridge.service: Service RestartSec=10s expired, scheduling restart.
Apr 27 18:58:43 raspberrypi systemd[1]: homebridge.service: Scheduled restart job, restart counter is at 1.
Apr 27 18:58:43 raspberrypi systemd[1]: Stopped Node.js HomeKit Server.
Apr 27 18:58:43 raspberrypi systemd[1]: Started Node.js HomeKit Server.

It would apreceate of anybody could help.

Thx a lot!

Michael

jalousie or blinds

Hi, thank you for creating this nice and automated integration between homebridge and Loxone.
it is working fine for lights and switches, but my Screens are not being recognized, most of the time I'm using the EIB Blinds. Should I rename them specifically so the ItemFactory.js will recognize them?
I also want to add the garage door control. eg. open or close gate and request the status of the gate? Is that possible with the current version of Homebridge-loxone-ws?

Siri - rotating wheel

I face a strange behaviour on my Raffstores when I want control it via Siri.
I just see the rotating wheel in the app and seconds nothing happens. If I control them manually by clicking the icon it works fine. Has anyone an idea what to do? Siri works with all the other components flawlessly.

Thanks in advance!

Tilt Angle Support for Window Covering

Anybody have shades that have a tilt angle?

Mine turn vertical when going down and horizontal when going up. I also know that Loxone supports setting an arbitrary angle by steering the shades by this technique.

I would like to sponsor somebody versed in JavaScript to enhance the Blinds item to support tilt angle as well.

  • TARGET_HORIZONTAL_TILT_ANGLE
  • TARGET_VERTICAL_TILT_ANGLE
  • CURRENT_HORIZONTAL_TILT_ANGLE
  • CURRENT_VERTICAL_TILT_ANGLE

Connection Error

Hi!

I have a problems when the launcher de homebridge:

homebridge-loxone-ws: 1.0.5
Loxone Miniserver: 10.0.9.24

[2019-3-17 18:50:37] Loaded config.json with 0 accessories and 1 platforms.
[2019-3-17 18:50:37] ---
[2019-3-17 18:50:37] Loaded plugin: homebridge-loxone-ws
homebridge API version: 2.3
[2019-3-17 18:50:37] Registering platform 'homebridge-loxoneWs.LoxoneWs'
[2019-3-17 18:50:37] ---
[2019-3-17 18:50:37] Loading 1 platforms...
[2019-3-17 18:50:37] [Loxone] Initializing LoxoneWs platform...
[2019-3-17 18:50:37] [Loxone] Info: rooms array not configured. Adding every room.
[2019-3-17 18:50:37] [Loxone] object
New WS: 192.168.1.30:81
[2019-3-17 18:50:37] [Loxone] Platform - Waiting 8 seconds until initial state is retrieved via WebSocket.
[2019-3-17 18:50:37] [Loxone] LOXONE WS: connect
[2019-3-17 18:50:37] [Loxone] LOXONE WS: connection error, reconnecting...undefined
[2019-3-17 18:50:39] [Loxone] LOXONE WS: connect
[2019-3-17 18:50:39] [Loxone] LOXONE WS: connection error, reconnecting...undefined
[2019-3-17 18:50:41] [Loxone] LOXONE WS: connect
[2019-3-17 18:50:41] [Loxone] LOXONE WS: connection error, reconnecting...undefined
[2019-3-17 18:50:43] [Loxone] LOXONE WS: connect
[2019-3-17 18:50:43] [Loxone] LOXONE WS: connection error, reconnecting...undefined
[2019-3-17 18:50:45] [Loxone] Platform - Retrieving initial config from http://USER:PASS@IP/data/LoxApp3.json
[2019-3-17 18:50:45] [Loxone] Platform - There was a problem connecting to Loxone.
[2019-3-17 18:50:45] [Loxone] LOXONE WS: connect
[2019-3-17 18:50:45] [Loxone] LOXONE WS: connection error, reconnecting...undefined
[2019-3-17 18:50:47] [Loxone] LOXONE WS: connect
[2019-3-17 18:50:47] [Loxone] LOXONE WS: connection error, reconnecting...undefined
[2019-3-17 18:50:47] [Loxone] LOXONE WS: connect
[2019-3-17 18:50:47] [Loxone] LOXONE WS: connection error, reconnecting...undefined
[2019-3-17 18:50:49] [Loxone] LOXONE WS: connect
....

Kind request: Audio Player and Music Server Zone support

I'm using your fork of homebridge-loxone-ws (homebridge-loxone-ws-adv) in HOOBS to integrate Loxone with Alexa and I'm very satisfied with it (thanks for all contributors!). I miss support for two device types though and this is one of them:

  • Audio Player and Music Server Zone blocks. To be able to start / stop music in a zone with voice command to Alexa. That would be very convenient for everyone having Loxone Audioserver or Music Server.

I kindly request adding support for that item. I have knowledge of Javascript good enough to add it by myself, unfortunately.

Tor Baustein mit Visualisierungskennwort

Hallo, ist es möglich, das man über die Homebridge auch Bausteine steuert, die ein Visualisierungskennwort verwenden?

Ich habe da z. B. den Tor Baustein für die Garage. Ich möchte nich, das man durch drücken auf Garagentor öffnen sofort das Garagentor öffnen kann, sondern das man die Aktion mit einem Passwort sichert. Hier wurde das Visualisierungskennwort verwenden, allerdings lässt sich der Baustein dann nicht mehr über die Homebridge steuern. Gibts da evtl. noch einen extra Parameter für das Visualisierungskennwort?

Connection fails

Hi, i try to install on my home and it appears to be all ok.
The reading of the config file works fine and send all my rooms and accessories to apple homekit correctly, but the try to connect all the time and the commands doesn't work.

Can you help me please!!

My Loxone Miniserver version is: 8.1.11.11 and i run homebridge in macOS 10.14

Thanks in advance

screenshot 2018-10-04 at 20 13 14

And sometimes, when i trigger a send message to some accessory i receive this error:

/usr/local/lib/node_modules/homebridge-loxone-ws/node_modules/node-lox-ws-api/lib/API.js:190
    this.connection.send(this._auth.prepare_control_command(control, command));
                                    ^

TypeError: Cannot read property 'prepare_control_command' of undefined
    at API.send_control_command (/usr/local/lib/node_modules/homebridge-loxone-ws/node_modules/node-lox-ws-api/lib/API.js:190:37)
    at API.send_cmd (/usr/local/lib/node_modules/homebridge-loxone-ws/node_modules/node-lox-ws-api/lib/API.js:203:10)
    at WSListener.sendCommand (/usr/local/lib/node_modules/homebridge-loxone-ws/libs/WSListener.js:140:13)
    at LightbulbItem.SwitchItem.setItemState (/usr/local/lib/node_modules/homebridge-loxone-ws/items/SwitchItem.js:62:22)
    at Characteristic.On.emit (events.js:182:13)
    at Characteristic.On.Characteristic.setValue (/usr/local/lib/node_modules/homebridge/node_modules/hap-nodejs/lib/Characteristic.js:320:10)
    at Bridge.<anonymous> (/usr/local/lib/node_modules/homebridge/node_modules/hap-nodejs/lib/Accessory.js:871:22)
    at Array.forEach (<anonymous>)
    at Bridge.Accessory._handleSetCharacteristics (/usr/local/lib/node_modules/homebridge/node_modules/hap-nodejs/lib/Accessory.js:811:8)
    at HAPServer.emit (events.js:182:13)```

Adding own service

Hey there...

at first I want to thank you for the great work you have done!
It's working like a charm :-)

But I have problems adding an additional service. Since I am not very familiar with JS, maybe you can help me out at this point.

When I modify line 37 in SwitchItem.js:
from: var otherService = new this.homebridge.hap.Service.Switch();
to: var otherService = new this.homebridge.hap.Service.Fan();
The icon in Homekit changes correctly to a fan icon and everything works fine.

But when I try to create an additional service (to not loose the switch service), it does not work.

What have I done:

  • I copied and renamed SwitchItem.js to FanItem.js

  • Then I replaced all SwitchItem strings in FanItem.js to FanItem.

  • Then I added the exports in ItemFactory.js:
    exports.Fan = require('../items/FanItem.js');

  • Then I added following case to the checkCustomAttrs in ItemFactory.js:
    } else if(item.name.startsWith('Cooler')) {
    item.type = "Fan";

    }

After restarting homebridge, I get this error:

/usr/local/lib/node_modules/homebridge-loxone-ws/items/FanItem.js:12
FanItem.super_.call(this, widget,platform,homebridge);
^

TypeError: Cannot read property 'call' of undefined
at new FanItem (/usr/local/lib/node_modules/homebridge-loxone-ws/items/FanItem.js:12:19)
at exports.Factory.parseSitemap (/usr/local/lib/node_modules/homebridge-loxone-ws/libs/ItemFactory.js:58:25)
at Request._callback (/usr/local/lib/node_modules/homebridge-loxone-ws/index.js:67:34)
at Request.self.callback (/usr/local/lib/node_modules/homebridge-loxone-ws/node_modules/request/request.js:186:22)
at emitTwo (events.js:87:13)
at Request.emit (events.js:172:7)
at Request. (/usr/local/lib/node_modules/homebridge-loxone-ws/node_modules/request/request.js:1081:10)
at emitOne (events.js:77:13)
at Request.emit (events.js:169:7)
at IncomingMessage. (/usr/local/lib/node_modules/homebridge-loxone-ws/node_modules/request/request.js:1001:12)

How to update to new version?

Sorry for my simple question, but would you be so kind and give me some information on how to update to newest version via git-CMD (on Win)? I'm new to this stuff and tried "git pull <url-to-this-.git>" but it didn't work.

Register more than one listener for Thermostat

Hello im on the way to set up an Thermostat function for LoxWs.

For this i have to programm more then one listener.
I tryed this:

ThermostatItem.prototype.initListener = function() {
this.platform.ws.registerListenerForUUID(this.statecurrent, this.callBack.bind(this));
this.platform.ws.registerListenerForUUID(this.statetarget, this.callBack.bind(this));
this.platform.ws.registerListenerForUUID(this.statemode, this.callBack.bind(this));
}

Its working for me, but i have the problem to make a differenz which of this event have been activated.
I hope you could help me.

Greets kaumi

NFC Code Touch - electric door switch?

Anybody already had a look at the API for integrating the Loxone NFC Code touch (https://shop.loxone.com/enen/nfc-code-touch.html) into HomeKit? Would be great to be able to open the door using Homekit instead of the Loxone app...

From the API documentation I see you need to use "Secured Commands"... Has somebody already used such a command with one of the other homebridge supported accessoires?

Thanks!

Initializing problem

Just installed this plugin but can't get it working.

[4/30/2020, 3:20:39 AM] Loaded config.json with 0 accessories and 1 platforms.
[4/30/2020, 3:20:39 AM] ---
[4/30/2020, 3:20:40 AM] Loaded plugin: homebridge-loxone-ws
homebridge API version: 2.5
[4/30/2020, 3:20:40 AM] Registering platform 'homebridge-loxone-ws.LoxoneWs'
[4/30/2020, 3:20:40 AM] ---
[4/30/2020, 3:20:40 AM] Loading 1 platforms...
[4/30/2020, 3:20:40 AM] [Loxone] Initializing LoxoneWs platform...
[4/30/2020, 3:20:40 AM] [Loxone] Info: rooms array not configured. Adding every room.
[4/30/2020, 3:20:40 AM] [Loxone] object
New WS: 192.168.1.27:80
[4/30/2020, 3:20:40 AM] [Loxone] Platform - Waiting 8 seconds until initial state is retrieved via WebSocket.
[4/30/2020, 3:20:40 AM] [Loxone] LOXONE WS: connect
[4/30/2020, 3:20:48 AM] [Loxone] Platform - Retrieving initial config from http://****:****@*****/data/LoxApp3.json
[4/30/2020, 3:20:48 AM] [Loxone] Platform - The widget 'Kerstboom in Living' of type Meter is an item not handled.
[4/30/2020, 3:20:48 AM] [Loxone] Platform - The widget 'Lichtsturing in Living' of type LightControllerV2 is an item not handled.
[4/30/2020, 3:20:48 AM] [Loxone] Platform - The widget 'Master helderheid of Lichtsturing in Living' of type Dimmer was skipped.
[4/30/2020, 3:20:48 AM] TypeError: Class constructor PlatformAccessory cannot be invoked without 'new'
    at LightbulbItem.AbstractItem (/usr/local/lib/node_modules/homebridge-loxone-ws/items/AbstractItem.js:22:25)
    at LightbulbItem.SwitchItem (/usr/local/lib/node_modules/homebridge-loxone-ws/items/SwitchItem.js:12:23)
    at new LightbulbItem (/usr/local/lib/node_modules/homebridge-loxone-ws/items/LightbulbItem.js:6:26)
    at exports.Factory.parseSitemap (/usr/local/lib/node_modules/homebridge-loxone-ws/libs/ItemFactory.js:66:29)
    at Request._callback (/usr/local/lib/node_modules/homebridge-loxone-ws/index.js:88:38)
    at Request.self.callback (/usr/local/lib/node_modules/homebridge-loxone-ws/node_modules/request/request.js:185:22)
    at Request.emit (events.js:316:20)
    at Request.<anonymous> (/usr/local/lib/node_modules/homebridge-loxone-ws/node_modules/request/request.js:1154:10)
    at Request.emit (events.js:316:20)
    at IncomingMessage.<anonymous> (/usr/local/lib/node_modules/homebridge-loxone-ws/node_modules/request/request.js:1076:12)
[4/30/2020, 3:20:48 AM] Got SIGTERM, shutting down Homebridge...

Only 100 Devices imported

Is there a limit as to how many devices are being reported to HomeKit? I am missing some outside lights and some switches.

---- Call for new contributor or designated fork ----

Hi all,

This project has not been maintained due to a lack of time. There are forks that have solved critical issues but I'm still asked for help on this one. I think it's good that I can point to one of the new forks in the README so new users don't run in the same problems, or if wanted, I can add those as contributors on this project to maintain it.

Since I'm not following up on the code I'm doing a call here to know which contributor feels like being the designated maintainer. I'm seeing most progress made by @Lumoc (https://github.com/Lumoc/homebridge-loxone-ws-adv) and most recent updates by @jmago17 (https://github.com/jmago17/homebridge-loxone-ws-adv).

Error with ws-api?

I'm not really sure what is happening and I do not understand javascript enough to really be able to situate the problem but whenever I try to start homebridge (with the loon plugin) I get one of the following two errors:
I think it might have something to do with the ws-api you're using but maybe it's best if you create a new issue there if that's the case.

/usr/local/lib/node_modules/homebridge-loxone-ws/node_modules/node-lox-ws-api/lib/API.js:190
    this.connection.send(this._auth.prepare_control_command(control, command));
                                    ^

TypeError: Cannot read property 'prepare_control_command' of undefined
    at API.send_control_command (/usr/local/lib/node_modules/homebridge-loxone-ws/node_modules/node-lox-ws-api/lib/API.js:190:37)
    at API.send_cmd (/usr/local/lib/node_modules/homebridge-loxone-ws/node_modules/node-lox-ws-api/lib/API.js:203:10)
    at WSListener.sendCommand (/usr/local/lib/node_modules/homebridge-loxone-ws/libs/WSListener.js:113:13)
    at DimmerItem.setItemState (/usr/local/lib/node_modules/homebridge-loxone-ws/items/DimmerItem.js:95:22)
    at emitMany (events.js:147:13)
    at Characteristic.Brightness.emit (events.js:224:7)
    at Characteristic.Brightness.Characteristic.setValue (/usr/local/lib/node_modules/homebridge/node_modules/hap-nodejs/lib/Characteristic.js:292:10)
    at DimmerItem.getOtherServices (/usr/local/lib/node_modules/homebridge-loxone-ws/items/DimmerItem.js:54:10)
    at DimmerItem.AbstractItem.getServices (/usr/local/lib/node_modules/homebridge-loxone-ws/items/AbstractItem.js:30:30)
    at Server._createAccessory (/usr/local/lib/node_modules/homebridge/lib/server.js:388:36)
       throw new Error("LOXONE WS: connection error");
       ^

Error: LOXONE WS: connection error
    at API.<anonymous> (/usr/local/lib/node_modules/homebridge-loxone-ws/libs/WSListener.js:44:14)
    at emitNone (events.js:106:13)
    at API.emit (events.js:208:7)
    at Connection.<anonymous> (/usr/local/lib/node_modules/homebridge-loxone-ws/node_modules/node-lox-ws-api/lib/API.js:98:14)
    at emitOne (events.js:116:13)
    at Connection.emit (events.js:211:7)
    at WebSocketConnection.<anonymous> (/usr/local/lib/node_modules/homebridge-loxone-ws/node_modules/node-lox-ws-api/lib/Connection.js:99:14)
    at emitOne (events.js:116:13)
    at WebSocketConnection.emit (events.js:211:7)
    at WebSocketConnection.handleSocketError (/usr/local/lib/node_modules/homebridge-loxone-ws/node_modules/websocket/lib/WebSocketConnection.js:347:14)```

Temperature Sensor Q

Hi all, sorry to ask what's probably a simple Q, but I can't see exactly how in the README to enable Temperature Sensors in Homebridge. I have homebridge working properly, but, I don't know what I need to do to poll any of the Analog Inputs I have setup in Loxone. I tried renaming one to "Temperature 0A-TS" from "0A-TS" but that didn't bring it in.

Do I need to do something to my config.json?

{
"bridge": {
"name": "Homebridge",
"username": "CC:22:3D:E3:CE:30",
"port": 51826,
"pin": "000-00-000"
},

"platforms": [
{
        "platform": "LoxoneWs",
        "name": "Loxone",
        "host": "10.1.2.3",
        "port": "80",
        "username": "admin",
        "password": "somepassword"
        "moodSwitches": "all"
    }
]

}

Lots of accessories missing

I've just tested Homebridge with your Loxone plugin and it is pretty nice.

But in the Home app, I'm missing lots of accessories. In my case, there is only one Blinds/Jalousie item and there are also not all light items available.

The console output of Homebridge also does not list the missing items, so I think that's an issue with the plugin.

Great

Hello,

Great work, I was supposed to make a PR to homebridge-loxone project with the support of WS but you was faster :D. I will use your project now :D

Maybe you could wait the merge of this PR alladdin/node-lox-ws-api#2
to have access to direct events on UUID ?

Error on initializing accessory

Hello, when i added in Loxone, "Lighting Controller V2 - https://www.loxone.com/enen/kb/lighting-controller-v2/ " , I've started receive error's like this, can u help to fix this?

[11/22/2017, 2:35:44 PM] [TL office] [dimmer] iOS - send brightness message to Главная яркость of Light control in Офис Tech Living: 0
/usr/local/lib/node_modules/homebridge-loxone-ws/node_modules/node-lox-ws-api/lib/API.js:190
this.connection.send(this._auth.prepare_control_command(control, command));
^

TypeError: Cannot read property 'prepare_control_command' of undefined
at API.send_control_command (/usr/local/lib/node_modules/homebridge-loxone-ws/node_modules/node-lox-ws-api/lib/API.js:190:36)
at API.send_cmd (/usr/local/lib/node_modules/homebridge-loxone-ws/node_modules/node-lox-ws-api/lib/API.js:203:10)
at WSListener.sendCommand (/usr/local/lib/node_modules/homebridge-loxone-ws/libs/WSListener.js:113:13)
at DimmerItem.setItemState (/usr/local/lib/node_modules/homebridge-loxone-ws/items/DimmerItem.js:95:22)
at emitMany (events.js:108:13)
at emit (events.js:182:7)
at Characteristic.setValue (/usr/local/lib/node_modules/homebridge/node_modules/hap-nodejs/lib/Characteristic.js:292:10)
at DimmerItem.getOtherServices (/usr/local/lib/node_modules/homebridge-loxone-ws/items/DimmerItem.js:54:10)
at AbstractItem.getServices (/usr/local/lib/node_modules/homebridge-loxone-ws/items/AbstractItem.js:30:30)
at Server.str.replace.Server._createAccessory (/usr/local/lib/node_modules/homebridge/lib/server.js:388:36)

Kind request: Shading Overview item support

I'm using your fork of homebridge-loxone-ws (homebridge-loxone-ws-adv) in HOOBS to integrate Loxone with Alexa and I'm very satisfied with it (thanks for all contributors!). I miss support for two device types though and this is one of them:

  • Central block for blinds (Shading Overview). Blind blocks are detected correctly but only for single windows, not for whole room.

I kindly request adding support for that item.

"Repeating" commands not working

To me it seems that Loxone has a problem with "repeating" commands. What do I mean with that:

When I initially close my blinds with homebridge -- [Loxone] [BLINDS] iOS - send message to Bodentief in Wohnen: ManualPosition/100 -- it works just fine. Then I set the blinds to another position WITHOUT homebridge. After that I try to close the blinds again with homebridge (same command as above) and Loxone just ignores this trigger. It only works again via homebridge if I set the blinds to another position (i.e. ManualPosition/50) first.

I hope you get what I mean. Is it just me who has this problem? Does anyone know how to fix this?

Greetz
Jay

Filter with more than 100 items

Hi there, got everything up and running so far except for the 100 items limit. Not really sure how to filter out some widgets or modules. Can you please provide an example?

Shutters don't close but go to shading

I have blinds that can also rotate the shutters to shade. Why is it when I close shutters via HomeKit, they go fully down and then go back to shading? I cannot achieve that they fully close.

Problem turning off RGBW Dimmer

I can control my RGBW LEDs with Siri, turn on, change color, set brightness, but turning them off, siri answers with okay, but the lights remain on.

WS looks up but i dont see any accessory

WS looks up but i dont see any accessory and superCtor.prototype make problems. can You help me fix it please?
Version
Hoobs 3.2.6
Node 12.16.3
Loxone Ws Adv 1.0.18

    1. 2020 7:54:15 [Loxone] LOXONE WS: connect
    1. 2020 7:54:23 [Loxone] Platform - Retrieving initial config from http://xxx:[email protected]:80/data/LoxApp3.json
    1. 2020 7:54:23 [Loxone] Platform - Total accessory count 0 across 0 rooms.
    1. 2020 7:54:23 Bridge is running on port 51826.
    1. 2020 7:56:13 [Loxone] LOXONE WS: keepalive 2
    1. 2020 7:57:10 The "superCtor.prototype" property must be of type object. Received undefined
    1. 2020 7:57:10 Unable to determine plugin type for "homebridge-loxone-ws-adv"
    1. 2020 7:57:13 The "superCtor.prototype" property must be of type object. Received undefined
    1. 2020 7:57:13 Unable to determine plugin type for "homebridge-loxone-ws-adv"
    1. 2020 7:58:13 [Loxone] LOXONE WS: keepalive 5
    1. 2020 8:00:13 [Loxone] LOXONE WS: keepalive 6
    1. 2020 8:02:13 [Loxone] LOXONE WS: keepalive 11
    1. 2020 8:04:13 [Loxone] LOXONE WS: keepalive 2
    1. 2020 8:06:13 [Loxone] LOXONE WS: keepalive 5
    1. 2020 8:08:13 [Loxone] LOXONE WS: keepalive 1
    1. 2020 8:10:13 [Loxone] LOXONE WS: keepalive 1
    1. 2020 8:11:38 The "superCtor.prototype" property must be of type object. Received undefined
    1. 2020 8:11:38 Unable to determine plugin type for "homebridge-loxone-ws-adv"
    1. 2020 8:12:13 [Loxone] LOXONE WS: keepalive 5
    1. 2020 8:12:35 The "superCtor.prototype" property must be of type object. Received undefined
    1. 2020 8:12:35 Unable to determine plugin type for "homebridge-loxone-ws-adv"
    1. 2020 8:14:13 [Loxone] LOXONE WS: keepalive 3
    1. 2020 8:16:13 [Loxone] LOXONE WS: keepalive 2
    1. 2020 8:18:13 [Loxone] LOXONE WS: keepalive 3
    1. 2020 8:20:13 [Loxone] LOXONE WS: keepalive 2
    1. 2020 8:20:55 The "superCtor.prototype" property must be of type object. Received undefined
    1. 2020 8:20:55 Unable to determine plugin type for "homebridge-loxone-ws-adv"
    1. 2020 8:21:20 The "superCtor.prototype" property must be of type object. Received undefined
    1. 2020 8:21:20 Unable to determine plugin type for "homebridge-loxone-ws-adv"
    1. 2020 8:21:53 The "superCtor.prototype" property must be of type object. Received undefined
    1. 2020 8:21:53 Unable to determine plugin type for "homebridge-loxone-ws-adv"
    1. 2020 8:22:13 [Loxone] LOXONE WS: keepalive 1
    1. 2020 8:24:13 [Loxone] LOXONE WS: keepalive 8
    1. 2020 8:26:13 [Loxone] LOXONE WS: keepalive 5

No homebridge 1.0 Support

After updating to homebridge 1.0.1, I got the following error message:

4/27/2020, 3:35:06 PM] [Loxone] Platform - Retrieving initial config from http://NodeRed:HHL%[email protected]:35000/data/LoxApp3.json
[4/27/2020, 3:35:06 PM] [Loxone] Platform - The widget 'Lichtsteuerung' of type LightControllerV2 is an item not handled.
[4/27/2020, 3:35:06 PM] [Loxone] Platform - The widget 'Master-Schalter of Lichtsteuerung' of type Lightbulb was skipped.
[4/27/2020, 3:35:06 PM] TypeError: Class constructor PlatformAccessory cannot be invoked without 'new'
at LightbulbItem.AbstractItem (/homebridge/node_modules/homebridge-loxone-ws-adv/items/AbstractItem.js:22:25)
at LightbulbItem.SwitchItem (/homebridge/node_modules/homebridge-loxone-ws-adv/items/SwitchItem.js:12:23)
at new LightbulbItem (/homebridge/node_modules/homebridge-loxone-ws-adv/items/LightbulbItem.js:6:26)
at exports.Factory.parseSitemap (/homebridge/node_modules/homebridge-loxone-ws-adv/libs/ItemFactory.js:66:29)
at Request._callback (/homebridge/node_modules/homebridge-loxone-ws-adv/index.js:88:38)
at Request.self.callback (/homebridge/node_modules/homebridge-loxone-ws-adv/node_modules/request/request.js:185:22)
at Request.emit (events.js:223:5)
at Request. (/homebridge/node_modules/homebridge-loxone-ws-adv/node_modules/request/request.js:1154:10)
at Request.emit (events.js:223:5)
at IncomingMessage. (/homebridge/node_modules/homebridge-loxone-ws-adv/node_modules/request/request.js:1076:12)
[4/27/2020, 3:35:06 PM] Got SIGTERM, shutting down Homebridge...

Running in an DS718+II Container with a Loxone Miniserver.

Thermostat and Alarm

Hi,

Are you planning to add the thermostat and the alarm accessory ?

That would be a very nice addition :-)

Nov 13 22:41:53 homebridge homebridge[3009]: [2017-11-13 22:41:53] [Loxone] Platform - The widget 'temperatura salon in Programador Horari' of type IRoomController is an item not handled.
Nov 13 22:41:53 homebridge homebridge[3009]: [2017-11-13 22:41:53] [Loxone] Platform - The widget 'Heating of temperatura salon in Programador Horari' of type IRCDaytimer is an item not handled.
Nov 13 22:41:53 homebridge homebridge[3009]: [2017-11-13 22:41:53] [Loxone] Platform - The widget 'Cooling of temperatura salon in Programador Horari' of type IRCDaytimer is an item not handled.

Nov 13 22:41:53 homebridge homebridge[3009]: [2017-11-13 22:41:53] [Loxone] Platform - The widget 'Alarma Intrusió in Central' of type Alarm is an item not handled.
Nov 13 22:41:53 homebridge homebridge[3009]: [2017-11-13 22:41:53] [Loxone] Platform - The widget 'sensors of Alarma Intrusió in Central' of type Tracker is an item not handled.
Nov 13 22:41:53 homebridge homebridge[3009]: [2017-11-13 22:41:53] [Loxone] Platform - The widget 'Tira Led RGB in Central' of type Daytimer is an item not handled.
Nov 13 22:41:53 homebridge homebridge[3009]: [2017-11-13 22:41:53] [Loxone] Platform - The widget 'Led´s Polsadors in Central' of type Daytimer is an item not handled.
Nov 13 22:41:53 homebridge homebridge[3009]: [2017-11-13 22:41:53] [Loxone] Platform - The widget 'Rétols in Central' of type Daytimer is an item not handled.
Nov 13 22:41:53 homebridge homebridge[3009]: [2017-11-13 22:41:53] [Loxone] Platform - The widget 'Controlador Multimedia in Despatx' of type Remote is an item not handled.

Homebridge not switching ON

Hi all..i successfully installed and made the system to work, to some extend, for some time. Then i switched off homebridge and tried to switch it back ON and failed. Any know issues that can cause this?

Accented characters in Loxone configuration cause errors

Hi,
I've been trying to setup the loxone bridge for days on a Raspberry PI 3, but always got strange error messages at the end of the startup cycle - so it never worked.
Finally I tried to remove all the special characters (ő,í,á,ú) from the datapoint names and descriptions in the Loxone configuration, and it did the magic - the integration works smoothly.
It's not a big issue, but good to know before you try to connect to a non-english configuration.

Plugin doesn't support multiple accessories with the same name.

In the ItemFactory.js the parsed items are saved within the itemList using their name. So as soon as you name your Lamps just "Light" in Loxone (which should be fine since you've already sorted them by their room attribute), you'll only get one of them recognised by the Homebridge.

I've tried to use their uuid as a key or just add them by Array.push and changing the for-loop, but then I'll get an error and unfortunately I've no time to debug this yet:

Jun 29 13:36:45 raspberrypi homebridge[2703]: throw new Error("Cannot add a bridged Accessory with the same UUID as another bridged Accessory: " + existing.UUID);

Adding KNX devices

Hi, I would like to add my knx accessories in my loxone miniserver to be controlled by homebridge, right now it detects them at boot but won't parse them correctly:
[Loxone] Platform - The widget 'Sala Estar 1 in Sala d'estar' of type UpDownDigital is an item not handled.

In this case its a window blinder, do I have to write my own type?
Can someone point out where should I start looking?
P.D. I can control this devices via http GET queries but no idea how to integrate them in the plugin

works incorrectly after a while

Hi!

It works fine, but after a while I see my accessories state corectly if I turn the lamps manually on or off, but if I turn the lights off and on from the phone, their status changes only on the phone, the real device does not turn on or off.

After homebridge restart it works again for a while.

Any suggestion?

Thanks

Siri saying false

Hello, i have installed this plugin on my raspberry. Now it works but when i say "Hey Siri, Garagentor schließen", sagt Siri: Okay, Garagentor ist wird geschlossen".

Warum "ist wird"?

Range Error

Hi,

after starting my Homeride first everything looks ok but then I get this error:
I hope you could help me.

Scan this code with your HomeKit App on your iOS device to pair with Homebridge:

┌────────────┐     
│ 012-34-567 │     
└────────────┘     

[2016-12-09 18:01:59] Homebridge is running on port 51826.
buffer.js:663
throw new RangeError('index out of range');
^

RangeError: index out of range
at checkOffset (buffer.js:663:11)
at Buffer.readDoubleLE (buffer.js:856:5)
at new EventWeather (/usr/local/lib/node_modules/homebridge-loxone-ws/node_modules/node-lox-ws-api/lib/Message/EventWeather.js:21:39)
at Connection.handle_message (/usr/local/lib/node_modules/homebridge-loxone-ws/node_modules/node-lox-ws-api/lib/Connection.js:189:34)
at WebSocketConnection. (/usr/local/lib/node_modules/homebridge-loxone-ws/node_modules/node-lox-ws-api/lib/Connection.js:98:14)
at emitOne (events.js:90:13)
at WebSocketConnection.emit (events.js:182:7)
at WebSocketConnection.processFrame (/usr/local/lib/node_modules/homebridge-loxone-ws/node_modules/websocket/lib/WebSocketConnection.js:524:26)
at /usr/local/lib/node_modules/homebridge-loxone-ws/node_modules/websocket/lib/WebSocketConnection.js:321:40
at _combinedTickCallback (node.js:376:9)

Temperature Regulation an Light Scene

Is it also possible to choose which light Scene shout be activatet?
For exaple in my livingroom when I`m sitting in front of my TV I have a spacial light Scene. Is I possible to say "Hey Siri switch in the Livingroom Scene XY on"?

Is it also possible to controll the temperature or ask for the Temperatur?

ContactSensors plea for help

Dear all,

I was trying to make my ContactSensors work, I managed to get it modifying the ItemFactory.js and adding the following:

    if (item.type == "WindowMonitor") {
        item.type = "ContactSensorItem";
    }

That managed to add it in but only partially.

{"name":"Monitor dveří","type":"WindowMonitor","uuidAction":"117a8079-01e1-f87b-ffff1e112f9dee5f","room":"10826687-03e7-aab5-ffff986830a1a389","cat":"1008e6ce-0082-07b5-ffff986830a1a389","defaultRating":2,"isFavorite":true,"isSecured":false,"details":{"windows":[{"name":"Vstup","room":"108749be-02f0-ace0-ffff986830a1a389"},{"name":"Zahrada","room":"108749be-02f0-ace0-ffff986830a1a389"}]},"states":{"numOpen":"117a8079-01e1-f883-ffff1e112f9dee5f","numClosed":"117a8079-01e1-f885-ffff1e112f9dee5f","numTilted":"117a8079-01e1-f884-ffff1e112f9dee5f","numOffline":"117a8079-01e1-f886-ffff1e112f9dee5f","numLocked":"117a8079-01e1-f887-ffff1e112f9dee5f","numUnlocked":"117a8079-01e1-f888-ffff1e112f9dee5f","windowStates":"117a8079-01e1-f88a-ffff1e112f9dee5f"}},"117a8055-03e2-742d-ffff986830a1a389":

As it can be seen from JSON Type entry WindowMonitor contains subentries windows that is not reflected at all in homekit. Otherwise regardless if all doors are open or closed state is never changing in homekit.

IMG_1541

Any help appreciated.

two and a half version

hi there,

there are currently two active versions of loxone-ws plugin (+ the code for the alarm controller: #38)

  1. loxone-ws-adv: works fine for almost everything but no support for outlets and the alarm controller linked above not included
  2. loxone-ws-adv-cstm: works also fine and I´m happy about the added outlet but no blinds, no gates, no alarm, etc.

is there a way to merge that easily or can someone create a "complete" version?
or at least to share the differences between the versions? I saw that the ItemFactory.js is different but is there more?

I guess I´m able to copy almost everything into one package for me, change all the files and add my custom attributes but its hard to keep it up to date in case of a new release.

EDIT: I tried to merge to have everything in place but I didnt get it work. no chance within my knowledge to get a complete version. Anyone willing to to this?

thanks for your help.

cheers

additional Loxone items availability in homebridge

hello,

i find the InfoOnlyDigital, LeftRightDigital and UpDownDigital Items generated in the data/LoxApp3.json by my loxone server recognized in the startup of the hombridge instance

unfortunatly they are given as: "is an item not handled"

i did already few hours of effort to add support myself, so i can finaly also commit something to the homebridge project, (would be nice to learn but also to give back something to all the poeple who did a lot of effort on this project)

i found some code in the ItemFactory.js file who is about the InfoOnlyDigital items
but the file for this one in the items folder is missing
i tried to modify a bit of the code in the ItemFactory.js file and added a new file in the items folder
but i am running into errors like "TypeError: Cannot read property 'call' of undefined"

this is my very first time i am working in Node.js and I am not an experienced programmer in other languages either
the task seems to be to difficult for my knowledge

can somebody make the support for the 3 items available?
or is somebody willing to help me learn more about the code?

thanks in advance

Error in README.md

Just wanted to let you know, that there is an error in the config.json password line - please remove the last ",". ;)

Loxone MotionSensor and ContactSensor do not show up.

Hallo everybody

The plugin works fine for me and after renaming my Humidity- and Temperatur-Sensors I can see all of them in my Home App.

I tried the same with my Loxone Motion Sensor naming them e.g. „MotionSensor Kitchen”. However, they do not show up in my Home App.

I have the same issue with my window contacts which I renamed to ContactSensor ... but they also don‘t appear in my Home App.

Dose anybody has an idea what I’m doing wrong?

Thanks
Theo

Sent with GitHawk

No actual responses from loxone miniserver

I have everything up and running and all my accesories are loaded in the home app on my phone and when I press a switch it does say it send a signal but it doesn't do anything .. the only thing that works is the temperature sensor value... It seems like all signals are sent to the miniserver but they don't get processed by loxone correctly ?

I have v 1.0.2 because v1.0.4 does not work on my RPi... it has errors with WS-API

Not working with release of Loxone 9.0.9.26

homebridge-loxone-ws doesn't work anymore since update 9.0.9.26. I noticed that one way status update from Loxone to HomeKit worked but after some reboots of the homebridge pi this functionality is also broken.

Doorlock Icon

Hello,
is there a way to change the Icon of some Switches to a „Doorlock-Icon“ ?

I have 2 electric doors an I can already open them in Homekit with switches, but i don‘t know how to change the Icon.

Thank you for your help

limit of 100 accessories

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 Loxone access.

How to do this? In the Loxone Config?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.