Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to correctly update value of characteristic #543

Closed
benzman81 opened this issue Jan 6, 2018 · 30 comments
Closed

How to correctly update value of characteristic #543

benzman81 opened this issue Jan 6, 2018 · 30 comments
Labels

Comments

@benzman81
Copy link

Hi,
there are multiple ways I found to update a value of a characteristic.

I found the following:

  • updateCharacteristic(...,VALUE)
  • setCharacteristic(...,VALUE)
  • getCharacteristic(...).setValue(VALUE,...)
  • getCharacteristic(...).updateValue(VALUE,...)

Currently I use getCharacteristic(...).setValue(VALUE,...) but i not always update the states in iOS from Background, only if I open the home app.

@KhaosT maybe you could explain what is the correct method and explain the differences. Thanks.

@grover
Copy link
Contributor

grover commented Jan 6, 2018

getCharacteristic(...).setValue(VALUE,...) is used by an iOS controller to change a characteristic. If you want to update a characteristic from the "accessory" side, use updateValue instead of setValue. That will also update the state in iOS, if the characteristic supports events and was subscribed to by an iOS controller.

@benzman81
Copy link
Author

@grober so from a plugin for homebridge to attach my own accessory I need to use updateValue, right?

@grover
Copy link
Contributor

grover commented Jan 6, 2018

yes

@benzman81
Copy link
Author

Is there any case, where I should use setValue for a homebridge plugin?

@grover
Copy link
Contributor

grover commented Jan 6, 2018

AFAIK no.

@NorthernMan54
Copy link
Contributor

NorthernMan54 commented Jan 6, 2018 via email

@benzman81
Copy link
Author

Changed everything to updateValue, but still notification do not appear reliable. If I open the HomeApp allmissing notifications appear. Maybe someone can look at my plugin to see whats wrong. Its happening both of my plugins https://github.com/benzman81/homebridge-http-webhooks and https://github.com/benzman81/homebridge-nukiio

Thanks in advance.

@NorthernMan54
Copy link
Contributor

@benzman81

First, there is or was an issue with remote notification of motion sensor events. I had patched my HAP-NodeJS a long time ago, and haven't looked to see if it has been fixed by Apple lately. https://github.com/KhaosT/HAP-NodeJS/issues/418

Are you experiencing this?

Second, I took a quick look at you code and and it seemed reasonable but also may have some issues around events. Is your changeHandler being fired when an incoming event occurs?

Third, to debug this I presume you have turned on HAP-NodeJS debugging, and are looking at HAP interactions with Home. For notifications to work the Accessory needs to register for events ( this is visible in debug ), and notifications need to be turned on in the Home app. When update events are sent, HAP is pretty chatty when in Debug.

Forth, with updateValue HAP-NodeJS doesn't propagate events with the same value, so no need to only send updates for change.

Lastly, in my sensor plugins I have totally stopped implementing the .on('get' event listener, and totally rely on updateValue for updates.

@benzman81
Copy link
Author

Wow, this is getting complicated :-)

first) I experience the issues mostly with contact/occupany sensors and locks, so if there was a bug with motion sensors, this shouldn't be the problem. But maybe its the same with other events, too.

second) the change handler is only called if the internal http server receives a matching request from some other home systems or a browser.

third) i never have turned on the debug for homebridge, will try that if I find some more time.

fourth) Since the updateValue is called from outside (the http server), I guess it is the correct way to call the update of hap and iOS,is it?

fifth) do you a plugin I can look at? is this only working with your repo or also with the official HAP-NodeJS?

@NorthernMan54
Copy link
Contributor

@benzman81 Once you have it working, it works really well but getting everything lined up the first time does take some effort. I had spent a few months looking at various things thru trial and error before it go it all working what I would call trouble free and reliably.

#3 Make sure it is HAP-NodeJS debugging..ie

DEBUG=* homebridge

#4 - as long as you can access the accessory, it should be fine. With debugging you should be able to ensure that the messages are getting thru.

#5 - I have been using this as a test bed for new ideas

https://github.com/NorthernMan54/homebridge-mcuiot/blob/master/index.js

Please note, in this I implemented device polling, rather than putting up a listener for the devices to update. I have started on a new version based on having a listener, and having the devices connect but it isn't complete yet. ( I do have the motion sensor working though, also if updateValue looks wacky it is because I was playing with an early concept of my pull request #539 ).

https://github.com/NorthernMan54/homebridge-wssensor

For HAP-NodeJS, using the stock version is fine, you just need to be aware of #418 . I have my own version, as I had enhanced it to also support using alexa to control my accessories.

@ebaauw
Copy link
Contributor

ebaauw commented Jan 7, 2018

First, there is or was an issue with remote notification of motion sensor events. I had patched my HAP-NodeJS a long time ago, and haven't looked to see if it has been fixed by Apple lately. #418

Fixed in tvOS 11, ebaauw/homebridge-hue#118 (comment).

Forth, with updateValue HAP-NodeJS doesn't propagate events with the same value

Except, of course, for the ProgrammableSwitchEvent characteristic ;-)

Lastly, in my sensor plugins I have totally stopped implementing the .on('get' event listener, and totally rely on updateValue for updates.

Same here.

@benzman81
Copy link
Author

In the log below I tests a contact sensor an a lock. Whenever an entry with [HttpWebHooks] or [INFO Nuki WebHook Server] is liste a call from an external system was done to update the state in home bridge/homekit. Mostly I receive no notification, but sometime I do. Currently it seems that the lock notification never comes through, but the contact sensor does sometime.

Any ideas?

`

2018-01-08 16:45:03 stderr Mon, 08 Jan 2018 16:45:03 GMT EventedHTTPServer [::ffff:10.0.1.109] HTTP Response is finished
2018-01-08 16:45:03 stderr Mon, 08 Jan 2018 16:45:03 GMT Accessory [Homebridge] Unregistering Characteristic "On" for events
2018-01-08 16:45:03 stderr Mon, 08 Jan 2018 16:45:03 GMT Accessory [Homebridge] Processing characteristic set: [{"aid":65,"iid":10,"ev":false}]
2018-01-08 16:45:03 stderr Mon, 08 Jan 2018 16:45:03 GMT HAPServer [00:11:32:51:28:B3] HAP Request: PUT /characteristics
2018-01-08 16:45:03 stderr Mon, 08 Jan 2018 16:45:03 GMT EventedHTTPServer [::ffff:10.0.1.109] HTTP request: /characteristics
2018-01-08 16:45:03 stderr Mon, 08 Jan 2018 16:45:03 GMT EventedHTTPServer [::ffff:10.0.1.109] HTTP Response is finished
2018-01-08 16:45:03 stderr Mon, 08 Jan 2018 16:45:03 GMT Accessory [Homebridge] Unregistering Characteristic "On" for events
2018-01-08 16:45:03 stderr Mon, 08 Jan 2018 16:45:03 GMT Accessory [Homebridge] Processing characteristic set: [{"aid":22,"iid":9,"ev":false}]
2018-01-08 16:45:03 stderr Mon, 08 Jan 2018 16:45:03 GMT HAPServer [00:11:32:51:28:B3] HAP Request: PUT /characteristics
2018-01-08 16:45:03 stderr Mon, 08 Jan 2018 16:45:03 GMT EventedHTTPServer [::ffff:10.0.1.109] HTTP request: /characteristics
2018-01-08 16:45:03 stderr Mon, 08 Jan 2018 16:45:03 GMT EventedHTTPServer [::ffff:10.0.1.109] HTTP Response is finished
2018-01-08 16:45:03 stderr Mon, 08 Jan 2018 16:45:03 GMT Accessory [Homebridge] Unregistering Characteristic "Volume" for events
2018-01-08 16:45:03 stderr Mon, 08 Jan 2018 16:45:03 GMT Accessory [Homebridge] Unregistering Characteristic "On" for events
2018-01-08 16:45:03 stderr Mon, 08 Jan 2018 16:45:03 GMT Accessory [Homebridge] Processing characteristic set: [{"aid":25,"iid":9,"ev":false},{"aid":25,"iid":16,"ev":false}]
2018-01-08 16:45:03 stderr Mon, 08 Jan 2018 16:45:03 GMT HAPServer [00:11:32:51:28:B3] HAP Request: PUT /characteristics
2018-01-08 16:45:03 stderr Mon, 08 Jan 2018 16:45:03 GMT EventedHTTPServer [::ffff:10.0.1.109] HTTP request: /characteristics
2018-01-08 16:45:03 stderr Mon, 08 Jan 2018 16:45:03 GMT EventedHTTPServer [::ffff:10.0.1.109] HTTP Response is finished
2018-01-08 16:45:03 stderr Mon, 08 Jan 2018 16:45:03 GMT Accessory [Homebridge] Unregistering Characteristic "Volume" for events
2018-01-08 16:45:03 stderr Mon, 08 Jan 2018 16:45:03 GMT Accessory [Homebridge] Unregistering Characteristic "On" for events
2018-01-08 16:45:03 stderr Mon, 08 Jan 2018 16:45:03 GMT Accessory [Homebridge] Processing characteristic set: [{"aid":27,"iid":9,"ev":false},{"aid":27,"iid":16,"ev":false}]
2018-01-08 16:45:03 stderr Mon, 08 Jan 2018 16:45:03 GMT HAPServer [00:11:32:51:28:B3] HAP Request: PUT /characteristics
2018-01-08 16:45:03 stderr Mon, 08 Jan 2018 16:45:03 GMT EventedHTTPServer [::ffff:10.0.1.109] HTTP request: /characteristics
2018-01-08 16:45:03 stderr Mon, 08 Jan 2018 16:45:03 GMT EventedHTTPServer [::ffff:10.0.1.109] HTTP Response is finished
2018-01-08 16:45:03 stderr Mon, 08 Jan 2018 16:45:03 GMT Accessory [Homebridge] Unregistering Characteristic "On" for events
2018-01-08 16:45:03 stderr Mon, 08 Jan 2018 16:45:03 GMT Accessory [Homebridge] Processing characteristic set: [{"aid":67,"iid":10,"ev":false}]
2018-01-08 16:45:03 stderr Mon, 08 Jan 2018 16:45:03 GMT HAPServer [00:11:32:51:28:B3] HAP Request: PUT /characteristics
2018-01-08 16:45:03 stderr Mon, 08 Jan 2018 16:45:03 GMT EventedHTTPServer [::ffff:10.0.1.109] HTTP request: /characteristics
2018-01-08 16:45:03 stderr Mon, 08 Jan 2018 16:45:03 GMT EventedHTTPServer [::ffff:10.0.1.109] HTTP Response is finished
2018-01-08 16:45:03 stderr Mon, 08 Jan 2018 16:45:03 GMT Accessory [Homebridge] Unregistering Characteristic "On" for events
2018-01-08 16:45:03 stderr Mon, 08 Jan 2018 16:45:03 GMT Accessory [Homebridge] Processing characteristic set: [{"aid":23,"iid":9,"ev":false}]
2018-01-08 16:45:03 stderr Mon, 08 Jan 2018 16:45:03 GMT HAPServer [00:11:32:51:28:B3] HAP Request: PUT /characteristics
2018-01-08 16:45:03 stderr Mon, 08 Jan 2018 16:45:03 GMT EventedHTTPServer [::ffff:10.0.1.109] HTTP request: /characteristics
2018-01-08 16:45:03 stderr Mon, 08 Jan 2018 16:45:03 GMT EventedHTTPServer [::ffff:10.0.1.109] HTTP Response is finished
2018-01-08 16:45:03 stderr Mon, 08 Jan 2018 16:45:03 GMT Accessory [Homebridge] Unregistering Characteristic "On" for events
2018-01-08 16:45:03 stderr Mon, 08 Jan 2018 16:45:03 GMT Accessory [Homebridge] Processing characteristic set: [{"aid":24,"iid":9,"ev":false}]
2018-01-08 16:45:03 stderr Mon, 08 Jan 2018 16:45:03 GMT HAPServer [00:11:32:51:28:B3] HAP Request: PUT /characteristics
2018-01-08 16:45:03 stderr Mon, 08 Jan 2018 16:45:03 GMT EventedHTTPServer [::ffff:10.0.1.109] HTTP request: /characteristics
2018-01-08 16:45:03 stderr Mon, 08 Jan 2018 16:45:03 GMT EventedHTTPServer [::ffff:10.0.1.109] HTTP Response is finished
2018-01-08 16:45:03 stderr Mon, 08 Jan 2018 16:45:03 GMT Accessory [Homebridge] Unregistering Characteristic "Status Low Battery" for events
2018-01-08 16:45:03 stderr Mon, 08 Jan 2018 16:45:03 GMT Accessory [Homebridge] Unregistering Characteristic "Charging State" for events
2018-01-08 16:45:03 stderr Mon, 08 Jan 2018 16:45:03 GMT Accessory [Homebridge] Unregistering Characteristic "Battery Level" for events
2018-01-08 16:45:03 stderr Mon, 08 Jan 2018 16:45:03 GMT Accessory [Homebridge] Processing characteristic set: [{"aid":46,"iid":21,"ev":false},{"aid":46,"iid":22,"ev":false},{"aid":46,"iid":23,"ev":false}]
2018-01-08 16:45:03 stderr Mon, 08 Jan 2018 16:45:03 GMT HAPServer [00:11:32:51:28:B3] HAP Request: PUT /characteristics
2018-01-08 16:45:03 stderr Mon, 08 Jan 2018 16:45:03 GMT EventedHTTPServer [::ffff:10.0.1.109] HTTP request: /characteristics
2018-01-08 16:45:03 stderr Mon, 08 Jan 2018 16:45:03 GMT EventedHTTPServer [::ffff:10.0.1.109] HTTP Response is finished
2018-01-08 16:45:03 stderr Mon, 08 Jan 2018 16:45:03 GMT Accessory [Homebridge] Unregistering Characteristic "Volume" for events
2018-01-08 16:45:03 stderr Mon, 08 Jan 2018 16:45:03 GMT Accessory [Homebridge] Unregistering Characteristic "On" for events
2018-01-08 16:45:03 stderr Mon, 08 Jan 2018 16:45:03 GMT Accessory [Homebridge] Processing characteristic set: [{"aid":35,"iid":9,"ev":false},{"aid":35,"iid":16,"ev":false}]
2018-01-08 16:45:03 stderr Mon, 08 Jan 2018 16:45:03 GMT HAPServer [00:11:32:51:28:B3] HAP Request: PUT /characteristics
2018-01-08 16:45:03 stderr Mon, 08 Jan 2018 16:45:03 GMT EventedHTTPServer [::ffff:10.0.1.109] HTTP request: /characteristics
2018-01-08 16:45:03 stderr Mon, 08 Jan 2018 16:45:03 GMT EventedHTTPServer [::ffff:10.0.1.109] HTTP Response is finished
2018-01-08 16:45:03 stderr Mon, 08 Jan 2018 16:45:03 GMT Accessory [Homebridge] Unregistering Characteristic "On" for events
2018-01-08 16:45:03 stderr Mon, 08 Jan 2018 16:45:03 GMT Accessory [Homebridge] Processing characteristic set: [{"aid":56,"iid":10,"ev":false}]
2018-01-08 16:45:03 stderr Mon, 08 Jan 2018 16:45:03 GMT HAPServer [00:11:32:51:28:B3] HAP Request: PUT /characteristics
2018-01-08 16:45:03 stderr Mon, 08 Jan 2018 16:45:03 GMT EventedHTTPServer [::ffff:10.0.1.109] HTTP request: /characteristics
2018-01-08 16:45:03 stderr Mon, 08 Jan 2018 16:45:03 GMT EventedHTTPServer [::ffff:10.0.1.109] HTTP Response is finished
2018-01-08 16:45:03 stderr Mon, 08 Jan 2018 16:45:03 GMT Accessory [Homebridge] Unregistering Characteristic "On" for events
2018-01-08 16:45:03 stderr Mon, 08 Jan 2018 16:45:03 GMT Accessory [Homebridge] Processing characteristic set: [{"aid":61,"iid":10,"ev":false}]
2018-01-08 16:45:03 stderr Mon, 08 Jan 2018 16:45:03 GMT HAPServer [00:11:32:51:28:B3] HAP Request: PUT /characteristics
2018-01-08 16:45:03 stderr Mon, 08 Jan 2018 16:45:03 GMT EventedHTTPServer [::ffff:10.0.1.109] HTTP request: /characteristics
2018-01-08 16:45:03 stderr Mon, 08 Jan 2018 16:45:03 GMT EventedHTTPServer [::ffff:10.0.1.109] HTTP Response is finished
2018-01-08 16:45:03 stderr Mon, 08 Jan 2018 16:45:03 GMT Accessory [Homebridge] Unregistering Characteristic "On" for events
2018-01-08 16:45:03 stderr Mon, 08 Jan 2018 16:45:03 GMT Accessory [Homebridge] Processing characteristic set: [{"aid":55,"iid":10,"ev":false}]
2018-01-08 16:45:03 stderr Mon, 08 Jan 2018 16:45:03 GMT HAPServer [00:11:32:51:28:B3] HAP Request: PUT /characteristics
2018-01-08 16:45:03 stderr Mon, 08 Jan 2018 16:45:03 GMT EventedHTTPServer [::ffff:10.0.1.109] HTTP request: /characteristics
2018-01-08 16:45:03 stderr Mon, 08 Jan 2018 16:45:03 GMT EventedHTTPServer [::ffff:10.0.1.109] HTTP Response is finished
2018-01-08 16:45:03 stderr Mon, 08 Jan 2018 16:45:03 GMT Accessory [Homebridge] Unregistering Characteristic "On" for events
2018-01-08 16:45:03 stderr Mon, 08 Jan 2018 16:45:03 GMT Accessory [Homebridge] Processing characteristic set: [{"aid":68,"iid":10,"ev":false}]
2018-01-08 16:45:03 stderr Mon, 08 Jan 2018 16:45:03 GMT HAPServer [00:11:32:51:28:B3] HAP Request: PUT /characteristics
2018-01-08 16:45:03 stderr Mon, 08 Jan 2018 16:45:03 GMT EventedHTTPServer [::ffff:10.0.1.109] HTTP request: /characteristics
2018-01-08 16:45:03 stderr Mon, 08 Jan 2018 16:45:03 GMT EventedHTTPServer [::ffff:10.0.1.109] HTTP Response is finished
2018-01-08 16:45:03 stderr Mon, 08 Jan 2018 16:45:03 GMT Accessory [Homebridge] Unregistering Characteristic "On" for events
2018-01-08 16:45:03 stderr Mon, 08 Jan 2018 16:45:03 GMT Accessory [Homebridge] Processing characteristic set: [{"aid":62,"iid":10,"ev":false}]
2018-01-08 16:45:03 stderr Mon, 08 Jan 2018 16:45:03 GMT HAPServer [00:11:32:51:28:B3] HAP Request: PUT /characteristics
2018-01-08 16:45:03 stderr Mon, 08 Jan 2018 16:45:03 GMT EventedHTTPServer [::ffff:10.0.1.109] HTTP request: /characteristics
2018-01-08 16:45:03 stderr Mon, 08 Jan 2018 16:45:03 GMT EventedHTTPServer [::ffff:10.0.1.109] HTTP Response is finished
2018-01-08 16:45:03 stderr Mon, 08 Jan 2018 16:45:03 GMT Accessory [Homebridge] Unregistering Characteristic "On" for events
2018-01-08 16:45:03 stderr Mon, 08 Jan 2018 16:45:03 GMT Accessory [Homebridge] Processing characteristic set: [{"aid":64,"iid":10,"ev":false}]
2018-01-08 16:45:03 stderr Mon, 08 Jan 2018 16:45:03 GMT HAPServer [00:11:32:51:28:B3] HAP Request: PUT /characteristics
2018-01-08 16:45:03 stderr Mon, 08 Jan 2018 16:45:03 GMT EventedHTTPServer [::ffff:10.0.1.109] HTTP request: /characteristics
2018-01-08 16:45:03 stderr Mon, 08 Jan 2018 16:45:03 GMT EventedHTTPServer [::ffff:10.0.1.109] HTTP Response is finished
2018-01-08 16:45:03 stderr Mon, 08 Jan 2018 16:45:03 GMT Accessory [Homebridge] Unregistering Characteristic "Status Low Battery" for events
2018-01-08 16:45:03 stderr Mon, 08 Jan 2018 16:45:03 GMT Accessory [Homebridge] Unregistering Characteristic "Charging State" for events
2018-01-08 16:45:03 stderr Mon, 08 Jan 2018 16:45:03 GMT Accessory [Homebridge] Unregistering Characteristic "Battery Level" for events
2018-01-08 16:45:03 stderr Mon, 08 Jan 2018 16:45:03 GMT Accessory [Homebridge] Processing characteristic set: [{"aid":47,"iid":13,"ev":false},{"aid":47,"iid":14,"ev":false},{"aid":47,"iid":15,"ev":false}]
2018-01-08 16:45:03 stderr Mon, 08 Jan 2018 16:45:03 GMT HAPServer [00:11:32:51:28:B3] HAP Request: PUT /characteristics
2018-01-08 16:45:03 stderr Mon, 08 Jan 2018 16:45:03 GMT EventedHTTPServer [::ffff:10.0.1.109] HTTP request: /characteristics
2018-01-08 16:45:03 stderr Mon, 08 Jan 2018 16:45:03 GMT EventedHTTPServer [::ffff:10.0.1.109] HTTP Response is finished
2018-01-08 16:45:03 stderr Mon, 08 Jan 2018 16:45:03 GMT Accessory [Homebridge] Unregistering Characteristic "On" for events
2018-01-08 16:45:03 stderr Mon, 08 Jan 2018 16:45:03 GMT Accessory [Homebridge] Processing characteristic set: [{"aid":66,"iid":10,"ev":false}]
2018-01-08 16:45:03 stderr Mon, 08 Jan 2018 16:45:03 GMT HAPServer [00:11:32:51:28:B3] HAP Request: PUT /characteristics
2018-01-08 16:45:03 stderr Mon, 08 Jan 2018 16:45:03 GMT EventedHTTPServer [::ffff:10.0.1.109] HTTP request: /characteristics
2018-01-08 16:45:01 stderr Mon, 08 Jan 2018 16:45:01 GMT EventedHTTPServer [::ffff:10.0.1.135] Sending HTTP event 'keepalive' with data: {"characteristics":[]}
2018-01-08 16:45:01 stderr Mon, 08 Jan 2018 16:45:01 GMT EventedHTTPServer [::ffff:10.0.1.102] Sending HTTP event 'keepalive' with data: {"characteristics":[]}
2018-01-08 16:45:01 stderr Mon, 08 Jan 2018 16:45:01 GMT EventedHTTPServer [::ffff:10.0.1.127] Sending HTTP event 'keepalive' with data: {"characteristics":[]}
2018-01-08 16:45:01 stderr Mon, 08 Jan 2018 16:45:01 GMT EventedHTTPServer [::ffff:10.0.1.132] Sending HTTP event 'keepalive' with data: {"characteristics":[]}
2018-01-08 16:45:01 stderr Mon, 08 Jan 2018 16:45:01 GMT EventedHTTPServer [::ffff:10.0.1.109] Sending HTTP event 'keepalive' with data: {"characteristics":[]}
2018-01-08 16:43:24 stderr Mon, 08 Jan 2018 16:43:24 GMT EventedHTTPServer [::ffff:10.0.1.132] HTTP Response is finished
2018-01-08 16:43:24 stderr Mon, 08 Jan 2018 16:43:24 GMT Accessory [Homebridge] Unregistering Characteristic "On" for events
2018-01-08 16:43:24 stderr Mon, 08 Jan 2018 16:43:24 GMT Accessory [Homebridge] Processing characteristic set: [{"aid":23,"iid":9,"ev":false}]
2018-01-08 16:43:24 stderr Mon, 08 Jan 2018 16:43:24 GMT HAPServer [00:11:32:51:28:B3] HAP Request: PUT /characteristics
2018-01-08 16:43:24 stderr Mon, 08 Jan 2018 16:43:24 GMT EventedHTTPServer [::ffff:10.0.1.132] HTTP request: /characteristics
2018-01-08 16:43:24 stderr Mon, 08 Jan 2018 16:43:24 GMT EventedHTTPServer [::ffff:10.0.1.132] HTTP Response is finished
2018-01-08 16:43:24 stderr Mon, 08 Jan 2018 16:43:24 GMT Accessory [Homebridge] Unregistering Characteristic "On" for events
2018-01-08 16:43:24 stderr Mon, 08 Jan 2018 16:43:24 GMT Accessory [Homebridge] Processing characteristic set: [{"aid":64,"iid":10,"ev":false}]
2018-01-08 16:43:24 stderr Mon, 08 Jan 2018 16:43:24 GMT HAPServer [00:11:32:51:28:B3] HAP Request: PUT /characteristics
2018-01-08 16:43:24 stderr Mon, 08 Jan 2018 16:43:24 GMT EventedHTTPServer [::ffff:10.0.1.132] HTTP request: /characteristics
2018-01-08 16:43:24 stderr Mon, 08 Jan 2018 16:43:24 GMT EventedHTTPServer [::ffff:10.0.1.132] HTTP Response is finished
2018-01-08 16:43:24 stderr Mon, 08 Jan 2018 16:43:24 GMT Accessory [Homebridge] Unregistering Characteristic "On" for events
2018-01-08 16:43:24 stderr Mon, 08 Jan 2018 16:43:24 GMT Accessory [Homebridge] Processing characteristic set: [{"aid":67,"iid":10,"ev":false}]
2018-01-08 16:43:24 stderr Mon, 08 Jan 2018 16:43:24 GMT HAPServer [00:11:32:51:28:B3] HAP Request: PUT /characteristics
2018-01-08 16:43:24 stderr Mon, 08 Jan 2018 16:43:24 GMT EventedHTTPServer [::ffff:10.0.1.132] HTTP request: /characteristics
2018-01-08 16:43:24 stderr Mon, 08 Jan 2018 16:43:24 GMT EventedHTTPServer [::ffff:10.0.1.132] HTTP Response is finished
2018-01-08 16:43:24 stderr Mon, 08 Jan 2018 16:43:24 GMT Accessory [Homebridge] Unregistering Characteristic "Volume" for events
2018-01-08 16:43:24 stderr Mon, 08 Jan 2018 16:43:24 GMT Accessory [Homebridge] Unregistering Characteristic "On" for events
2018-01-08 16:43:24 stderr Mon, 08 Jan 2018 16:43:24 GMT Accessory [Homebridge] Processing characteristic set: [{"aid":25,"iid":9,"ev":false},{"aid":25,"iid":16,"ev":false}]
2018-01-08 16:43:24 stderr Mon, 08 Jan 2018 16:43:24 GMT HAPServer [00:11:32:51:28:B3] HAP Request: PUT /characteristics
2018-01-08 16:43:24 stderr Mon, 08 Jan 2018 16:43:24 GMT EventedHTTPServer [::ffff:10.0.1.132] HTTP request: /characteristics
2018-01-08 16:43:24 stderr Mon, 08 Jan 2018 16:43:24 GMT EventedHTTPServer [::ffff:10.0.1.132] HTTP Response is finished
2018-01-08 16:43:24 stderr Mon, 08 Jan 2018 16:43:24 GMT Accessory [Homebridge] Unregistering Characteristic "Status Low Battery" for events
2018-01-08 16:43:24 stderr Mon, 08 Jan 2018 16:43:24 GMT Accessory [Homebridge] Unregistering Characteristic "Charging State" for events
2018-01-08 16:43:24 stderr Mon, 08 Jan 2018 16:43:24 GMT Accessory [Homebridge] Unregistering Characteristic "Battery Level" for events
2018-01-08 16:43:24 stderr Mon, 08 Jan 2018 16:43:24 GMT Accessory [Homebridge] Processing characteristic set: [{"aid":46,"iid":21,"ev":false},{"aid":46,"iid":22,"ev":false},{"aid":46,"iid":23,"ev":false}]
2018-01-08 16:43:24 stderr Mon, 08 Jan 2018 16:43:24 GMT HAPServer [00:11:32:51:28:B3] HAP Request: PUT /characteristics
2018-01-08 16:43:24 stderr Mon, 08 Jan 2018 16:43:24 GMT EventedHTTPServer [::ffff:10.0.1.132] HTTP request: /characteristics
2018-01-08 16:43:24 stderr Mon, 08 Jan 2018 16:43:24 GMT EventedHTTPServer [::ffff:10.0.1.132] HTTP Response is finished
2018-01-08 16:43:24 stderr Mon, 08 Jan 2018 16:43:24 GMT Accessory [Homebridge] Unregistering Characteristic "Status Low Battery" for events
2018-01-08 16:43:24 stderr Mon, 08 Jan 2018 16:43:24 GMT Accessory [Homebridge] Unregistering Characteristic "Charging State" for events
2018-01-08 16:43:24 stderr Mon, 08 Jan 2018 16:43:24 GMT Accessory [Homebridge] Unregistering Characteristic "Battery Level" for events
2018-01-08 16:43:24 stderr Mon, 08 Jan 2018 16:43:24 GMT Accessory [Homebridge] Processing characteristic set: [{"aid":47,"iid":13,"ev":false},{"aid":47,"iid":14,"ev":false},{"aid":47,"iid":15,"ev":false}]
2018-01-08 16:43:24 stderr Mon, 08 Jan 2018 16:43:24 GMT HAPServer [00:11:32:51:28:B3] HAP Request: PUT /characteristics
2018-01-08 16:43:24 stderr Mon, 08 Jan 2018 16:43:24 GMT EventedHTTPServer [::ffff:10.0.1.132] HTTP request: /characteristics
2018-01-08 16:43:24 stderr Mon, 08 Jan 2018 16:43:24 GMT EventedHTTPServer [::ffff:10.0.1.132] HTTP Response is finished
2018-01-08 16:43:24 stderr Mon, 08 Jan 2018 16:43:24 GMT Accessory [Homebridge] Unregistering Characteristic "Programmable Switch Event" for events
2018-01-08 16:43:24 stderr Mon, 08 Jan 2018 16:43:24 GMT Accessory [Homebridge] Processing characteristic set: [{"aid":52,"iid":9,"ev":false}]
2018-01-08 16:43:24 stderr Mon, 08 Jan 2018 16:43:24 GMT HAPServer [00:11:32:51:28:B3] HAP Request: PUT /characteristics
2018-01-08 16:43:24 stderr Mon, 08 Jan 2018 16:43:24 GMT EventedHTTPServer [::ffff:10.0.1.132] HTTP request: /characteristics
2018-01-08 16:43:24 stderr Mon, 08 Jan 2018 16:43:24 GMT EventedHTTPServer [::ffff:10.0.1.132] HTTP Response is finished
2018-01-08 16:43:24 stderr Mon, 08 Jan 2018 16:43:24 GMT Accessory [Homebridge] Unregistering Characteristic "Volume" for events
2018-01-08 16:43:24 stderr Mon, 08 Jan 2018 16:43:24 GMT Accessory [Homebridge] Unregistering Characteristic "On" for events
2018-01-08 16:43:24 stderr Mon, 08 Jan 2018 16:43:24 GMT Accessory [Homebridge] Processing characteristic set: [{"aid":35,"iid":9,"ev":false},{"aid":35,"iid":16,"ev":false}]
2018-01-08 16:43:24 stderr Mon, 08 Jan 2018 16:43:24 GMT HAPServer [00:11:32:51:28:B3] HAP Request: PUT /characteristics
2018-01-08 16:43:24 stderr Mon, 08 Jan 2018 16:43:24 GMT EventedHTTPServer [::ffff:10.0.1.132] HTTP request: /characteristics
2018-01-08 16:43:24 stderr Mon, 08 Jan 2018 16:43:24 GMT EventedHTTPServer [::ffff:10.0.1.132] HTTP Response is finished
2018-01-08 16:43:24 stderr Mon, 08 Jan 2018 16:43:24 GMT Accessory [Homebridge] Unregistering Characteristic "On" for events
2018-01-08 16:43:24 stderr Mon, 08 Jan 2018 16:43:24 GMT Accessory [Homebridge] Processing characteristic set: [{"aid":68,"iid":10,"ev":false}]
2018-01-08 16:43:24 stderr Mon, 08 Jan 2018 16:43:24 GMT HAPServer [00:11:32:51:28:B3] HAP Request: PUT /characteristics
2018-01-08 16:43:24 stderr Mon, 08 Jan 2018 16:43:24 GMT EventedHTTPServer [::ffff:10.0.1.132] HTTP request: /characteristics
2018-01-08 16:43:24 stderr Mon, 08 Jan 2018 16:43:24 GMT EventedHTTPServer [::ffff:10.0.1.132] HTTP Response is finished
2018-01-08 16:43:24 stderr Mon, 08 Jan 2018 16:43:24 GMT Accessory [Homebridge] Unregistering Characteristic "On" for events
2018-01-08 16:43:24 stderr Mon, 08 Jan 2018 16:43:24 GMT Accessory [Homebridge] Processing characteristic set: [{"aid":56,"iid":10,"ev":false}]
2018-01-08 16:43:24 stderr Mon, 08 Jan 2018 16:43:24 GMT HAPServer [00:11:32:51:28:B3] HAP Request: PUT /characteristics
2018-01-08 16:43:24 stderr Mon, 08 Jan 2018 16:43:24 GMT EventedHTTPServer [::ffff:10.0.1.132] HTTP request: /characteristics
2018-01-08 16:43:24 stderr Mon, 08 Jan 2018 16:43:24 GMT EventedHTTPServer [::ffff:10.0.1.132] HTTP Response is finished
2018-01-08 16:43:24 stderr Mon, 08 Jan 2018 16:43:24 GMT Accessory [Homebridge] Unregistering Characteristic "On" for events
2018-01-08 16:43:24 stderr Mon, 08 Jan 2018 16:43:24 GMT Accessory [Homebridge] Processing characteristic set: [{"aid":24,"iid":9,"ev":false}]
2018-01-08 16:43:24 stderr Mon, 08 Jan 2018 16:43:24 GMT HAPServer [00:11:32:51:28:B3] HAP Request: PUT /characteristics
2018-01-08 16:43:24 stderr Mon, 08 Jan 2018 16:43:24 GMT EventedHTTPServer [::ffff:10.0.1.132] HTTP request: /characteristics
2018-01-08 16:43:24 stderr Mon, 08 Jan 2018 16:43:24 GMT EventedHTTPServer [::ffff:10.0.1.132] HTTP Response is finished
2018-01-08 16:43:24 stderr Mon, 08 Jan 2018 16:43:24 GMT Accessory [Homebridge] Unregistering Characteristic "On" for events
2018-01-08 16:43:24 stderr Mon, 08 Jan 2018 16:43:24 GMT Accessory [Homebridge] Processing characteristic set: [{"aid":22,"iid":9,"ev":false}]
2018-01-08 16:43:24 stderr Mon, 08 Jan 2018 16:43:24 GMT HAPServer [00:11:32:51:28:B3] HAP Request: PUT /characteristics
2018-01-08 16:43:24 stderr Mon, 08 Jan 2018 16:43:24 GMT EventedHTTPServer [::ffff:10.0.1.132] HTTP request: /characteristics
2018-01-08 16:43:24 stderr Mon, 08 Jan 2018 16:43:24 GMT EventedHTTPServer [::ffff:10.0.1.132] HTTP Response is finished
2018-01-08 16:43:24 stderr Mon, 08 Jan 2018 16:43:24 GMT Accessory [Homebridge] Unregistering Characteristic "On" for events
2018-01-08 16:43:24 stderr Mon, 08 Jan 2018 16:43:24 GMT Accessory [Homebridge] Processing characteristic set: [{"aid":62,"iid":10,"ev":false}]
2018-01-08 16:43:24 stderr Mon, 08 Jan 2018 16:43:24 GMT HAPServer [00:11:32:51:28:B3] HAP Request: PUT /characteristics
2018-01-08 16:43:24 stderr Mon, 08 Jan 2018 16:43:24 GMT EventedHTTPServer [::ffff:10.0.1.132] HTTP request: /characteristics
2018-01-08 16:43:24 stderr Mon, 08 Jan 2018 16:43:24 GMT EventedHTTPServer [::ffff:10.0.1.132] HTTP Response is finished
2018-01-08 16:43:24 stderr Mon, 08 Jan 2018 16:43:24 GMT Accessory [Homebridge] Unregistering Characteristic "Control Point" for events
2018-01-08 16:43:24 stderr Mon, 08 Jan 2018 16:43:24 GMT Accessory [Homebridge] Unregistering Characteristic "Version" for events
2018-01-08 16:43:24 stderr Mon, 08 Jan 2018 16:43:24 GMT Accessory [Homebridge] Unregistering Characteristic "State" for events
2018-01-08 16:43:24 stderr Mon, 08 Jan 2018 16:43:24 GMT Accessory [Homebridge] Processing characteristic set: [{"aid":1,"iid":8,"ev":false},{"aid":1,"iid":9,"ev":false},{"aid":1,"iid":10,"ev":false}]
2018-01-08 16:43:24 stderr Mon, 08 Jan 2018 16:43:24 GMT HAPServer [00:11:32:51:28:B3] HAP Request: PUT /characteristics
2018-01-08 16:43:24 stderr Mon, 08 Jan 2018 16:43:24 GMT EventedHTTPServer [::ffff:10.0.1.132] HTTP request: /characteristics
2018-01-08 16:43:24 stderr Mon, 08 Jan 2018 16:43:24 GMT EventedHTTPServer [::ffff:10.0.1.132] HTTP Response is finished
2018-01-08 16:43:24 stderr Mon, 08 Jan 2018 16:43:24 GMT Accessory [Homebridge] Unregistering Characteristic "On" for events
2018-01-08 16:43:24 stderr Mon, 08 Jan 2018 16:43:24 GMT Accessory [Homebridge] Processing characteristic set: [{"aid":66,"iid":10,"ev":false}]
2018-01-08 16:43:24 stderr Mon, 08 Jan 2018 16:43:24 GMT HAPServer [00:11:32:51:28:B3] HAP Request: PUT /characteristics
2018-01-08 16:43:24 stderr Mon, 08 Jan 2018 16:43:24 GMT EventedHTTPServer [::ffff:10.0.1.132] HTTP request: /characteristics
2018-01-08 16:43:24 stderr Mon, 08 Jan 2018 16:43:24 GMT EventedHTTPServer [::ffff:10.0.1.132] HTTP Response is finished
2018-01-08 16:43:24 stderr Mon, 08 Jan 2018 16:43:24 GMT Accessory [Homebridge] Unregistering Characteristic "On" for events
2018-01-08 16:43:24 stderr Mon, 08 Jan 2018 16:43:24 GMT Accessory [Homebridge] Processing characteristic set: [{"aid":61,"iid":10,"ev":false}]
2018-01-08 16:43:24 stderr Mon, 08 Jan 2018 16:43:24 GMT HAPServer [00:11:32:51:28:B3] HAP Request: PUT /characteristics
2018-01-08 16:43:24 stderr Mon, 08 Jan 2018 16:43:24 GMT EventedHTTPServer [::ffff:10.0.1.132] HTTP request: /characteristics
2018-01-08 16:43:24 stderr Mon, 08 Jan 2018 16:43:24 GMT EventedHTTPServer [::ffff:10.0.1.132] HTTP Response is finished
2018-01-08 16:43:24 stderr Mon, 08 Jan 2018 16:43:24 GMT Accessory [Homebridge] Unregistering Characteristic "On" for events
2018-01-08 16:43:24 stderr Mon, 08 Jan 2018 16:43:24 GMT Accessory [Homebridge] Processing characteristic set: [{"aid":55,"iid":10,"ev":false}]
2018-01-08 16:43:24 stderr Mon, 08 Jan 2018 16:43:24 GMT HAPServer [00:11:32:51:28:B3] HAP Request: PUT /characteristics
2018-01-08 16:43:24 stderr Mon, 08 Jan 2018 16:43:24 GMT EventedHTTPServer [::ffff:10.0.1.132] HTTP request: /characteristics
2018-01-08 16:43:24 stderr Mon, 08 Jan 2018 16:43:24 GMT EventedHTTPServer [::ffff:10.0.1.132] HTTP Response is finished
2018-01-08 16:43:24 stderr Mon, 08 Jan 2018 16:43:24 GMT Accessory [Homebridge] Unregistering Characteristic "On" for events
2018-01-08 16:43:24 stderr Mon, 08 Jan 2018 16:43:24 GMT Accessory [Homebridge] Processing characteristic set: [{"aid":65,"iid":10,"ev":false}]
2018-01-08 16:43:24 stderr Mon, 08 Jan 2018 16:43:24 GMT HAPServer [00:11:32:51:28:B3] HAP Request: PUT /characteristics
2018-01-08 16:43:24 stderr Mon, 08 Jan 2018 16:43:24 GMT EventedHTTPServer [::ffff:10.0.1.132] HTTP request: /characteristics
2018-01-08 16:43:24 stderr Mon, 08 Jan 2018 16:43:24 GMT EventedHTTPServer [::ffff:10.0.1.132] HTTP Response is finished
2018-01-08 16:43:24 stderr Mon, 08 Jan 2018 16:43:24 GMT Accessory [Homebridge] Unregistering Characteristic "Volume" for events
2018-01-08 16:43:24 stderr Mon, 08 Jan 2018 16:43:24 GMT Accessory [Homebridge] Unregistering Characteristic "On" for events
2018-01-08 16:43:24 stderr Mon, 08 Jan 2018 16:43:24 GMT Accessory [Homebridge] Processing characteristic set: [{"aid":27,"iid":9,"ev":false},{"aid":27,"iid":16,"ev":false}]
2018-01-08 16:43:24 stderr Mon, 08 Jan 2018 16:43:24 GMT HAPServer [00:11:32:51:28:B3] HAP Request: PUT /characteristics
2018-01-08 16:43:24 stderr Mon, 08 Jan 2018 16:43:24 GMT EventedHTTPServer [::ffff:10.0.1.132] HTTP request: /characteristics
2018-01-08 16:43:24 stderr Mon, 08 Jan 2018 16:43:24 GMT EventedHTTPServer [::ffff:10.0.1.132] Sending HTTP event '15.8' with data: {"characteristics":[{"aid":15,"iid":8,"value":false}]}
2018-01-08 16:43:24 stderr Mon, 08 Jan 2018 16:43:24 GMT EventedHTTPServer [::ffff:10.0.1.109] Sending HTTP event '15.8' with data: {"characteristics":[{"aid":15,"iid":8,"value":false}]}
2018-01-08 16:42:53 stderr Mon, 08 Jan 2018 16:42:53 GMT EventedHTTPServer [::ffff:10.0.1.132] Sending HTTP event '15.8' with data: {"characteristics":[{"aid":15,"iid":8,"value":true}]}
2018-01-08 16:42:53 stderr Mon, 08 Jan 2018 16:42:53 GMT EventedHTTPServer [::ffff:10.0.1.109] Sending HTTP event '15.8' with data: {"characteristics":[{"aid":15,"iid":8,"value":true}]}
2018-01-08 16:42:50 stdout [2018-1-8 16:42:50] [NukiBridge] HomeKit state change by webhook complete. New isLocked = 'false' and batteryCritical = 'false'.
2018-01-08 16:42:50 stderr Mon, 08 Jan 2018 16:42:50 GMT EventedHTTPServer [::ffff:10.0.1.135] Sending HTTP event '47.10' with data: {"characteristics":[{"aid":47,"iid":10,"value":0}]}
2018-01-08 16:42:50 stderr Mon, 08 Jan 2018 16:42:50 GMT EventedHTTPServer [::ffff:10.0.1.102] Sending HTTP event '47.10' with data: {"characteristics":[{"aid":47,"iid":10,"value":0}]}
2018-01-08 16:42:50 stderr Mon, 08 Jan 2018 16:42:50 GMT EventedHTTPServer [::ffff:10.0.1.127] Sending HTTP event '47.10' with data: {"characteristics":[{"aid":47,"iid":10,"value":0}]}
2018-01-08 16:42:50 stderr Mon, 08 Jan 2018 16:42:50 GMT EventedHTTPServer [::ffff:10.0.1.132] Sending HTTP event '47.10' with data: {"characteristics":[{"aid":47,"iid":10,"value":0}]}
2018-01-08 16:42:50 stderr Mon, 08 Jan 2018 16:42:50 GMT EventedHTTPServer [::ffff:10.0.1.109] Sending HTTP event '47.10' with data: {"characteristics":[{"aid":47,"iid":10,"value":0}]}
2018-01-08 16:42:50 stdout [2018-1-8 16:42:50] [NukiBridge] [INFO Nuki WebHook Server] Updated lock state from webhook to isLocked = 'false' (Nuki state '3' ) for lock '63120361' (instance id '1') with batteryCritical = 'false'.
2018-01-08 16:42:48 stderr Mon, 08 Jan 2018 16:42:48 GMT EventedHTTPServer [::ffff:10.0.1.132] Sending HTTP event '30.9' with data: {"characteristics":[{"aid":30,"iid":9,"value":0}]}
2018-01-08 16:42:48 stderr Mon, 08 Jan 2018 16:42:48 GMT EventedHTTPServer [::ffff:10.0.1.109] Sending HTTP event '30.9' with data: {"characteristics":[{"aid":30,"iid":9,"value":0}]}
2018-01-08 16:42:48 stdout [2018-1-8 16:42:48] [HttpWebHooks] Change HomeKit state for contact sensor to 'true'.
2018-01-08 16:42:43 stderr Mon, 08 Jan 2018 16:42:43 GMT EventedHTTPServer [::ffff:10.0.1.132] Sending HTTP event '30.9' with data: {"characteristics":[{"aid":30,"iid":9,"value":1}]}
2018-01-08 16:42:43 stderr Mon, 08 Jan 2018 16:42:43 GMT EventedHTTPServer [::ffff:10.0.1.109] Sending HTTP event '30.9' with data: {"characteristics":[{"aid":30,"iid":9,"value":1}]}
2018-01-08 16:42:43 stdout [2018-1-8 16:42:43] [HttpWebHooks] Change HomeKit state for contact sensor to 'false'.
2018-01-08 16:42:29 stdout [2018-1-8 16:42:29] [NukiBridge] HomeKit state change by webhook complete. New isLocked = 'true' and batteryCritical = 'false'.
2018-01-08 16:42:29 stderr Mon, 08 Jan 2018 16:42:29 GMT EventedHTTPServer [::ffff:10.0.1.135] Sending HTTP event '47.10' with data: {"characteristics":[{"aid":47,"iid":10,"value":1}]}
2018-01-08 16:42:29 stderr Mon, 08 Jan 2018 16:42:29 GMT EventedHTTPServer [::ffff:10.0.1.102] Sending HTTP event '47.10' with data: {"characteristics":[{"aid":47,"iid":10,"value":1}]}
2018-01-08 16:42:29 stderr Mon, 08 Jan 2018 16:42:29 GMT EventedHTTPServer [::ffff:10.0.1.127] Sending HTTP event '47.10' with data: {"characteristics":[{"aid":47,"iid":10,"value":1}]}
2018-01-08 16:42:29 stderr Mon, 08 Jan 2018 16:42:29 GMT EventedHTTPServer [::ffff:10.0.1.132] Sending HTTP event '47.10' with data: {"characteristics":[{"aid":47,"iid":10,"value":1}]}
2018-01-08 16:42:29 stderr Mon, 08 Jan 2018 16:42:29 GMT EventedHTTPServer [::ffff:10.0.1.109] Sending HTTP event '47.10' with data: {"characteristics":[{"aid":47,"iid":10,"value":1}]}
2018-01-08 16:42:29 stdout [2018-1-8 16:42:29] [NukiBridge] [INFO Nuki WebHook Server] Updated lock state from webhook to isLocked = 'true' (Nuki state '1' ) for lock '63120361' (instance id '1') with batteryCritical = 'false'.
2018-01-08 16:42:22 stderr Mon, 08 Jan 2018 16:42:22 GMT EventedHTTPServer [::ffff:10.0.1.132] Sending HTTP event '15.8' with data: {"characteristics":[{"aid":15,"iid":8,"value":false}]}
2018-01-08 16:42:22 stderr Mon, 08 Jan 2018 16:42:22 GMT EventedHTTPServer [::ffff:10.0.1.109] Sending HTTP event '15.8' with data: {"characteristics":[{"aid":15,"iid":8,"value":false}]}
2018-01-08 16:42:06 stderr Mon, 08 Jan 2018 16:42:06 GMT EventedHTTPServer [::ffff:10.0.1.132] HTTP Response is finished
2018-01-08 16:42:06 stderr Mon, 08 Jan 2018 16:42:06 GMT Accessory [Homebridge] Got Characteristic "Volume" value: 37
2018-01-08 16:42:06 stdout [2018-1-8 16:42:06] [Küche Lautsprecher] Current volume: 37
2018-01-08 16:42:06 stderr Mon, 08 Jan 2018 16:42:06 GMT Accessory [Homebridge] Got Characteristic "On" value: false
2018-01-08 16:42:06 stderr [2018-1-8 16:42:06] [Küche Lautsprecher] Current state for Sonos: stopped
2018-01-08 16:42:06 stderr Mon, 08 Jan 2018 16:42:06 GMT Accessory [Homebridge] Got Characteristic "On" value: false
2018-01-08 16:42:06 stdout [2018-1-8 16:42:06] [NukiBridge] Getting current state for 'maintainance-switch-fwupdate'...
2018-01-08 16:42:06 stderr Mon, 08 Jan 2018 16:42:06 GMT Accessory [Homebridge] Getting value for Characteristic "On"
2018-01-08 16:42:06 stderr Mon, 08 Jan 2018 16:42:06 GMT Accessory [Homebridge] Got Characteristic "On" value: false
2018-01-08 16:42:06 stdout [2018-1-8 16:42:06] [NukiBridge] Getting current state for 'maintainance-switch-reboot'...
2018-01-08 16:42:06 stderr Mon, 08 Jan 2018 16:42:06 GMT Accessory [Homebridge] Getting value for Characteristic "On"
2018-01-08 16:42:06 stderr Mon, 08 Jan 2018 16:42:06 GMT sonos Sonos.request("/MediaRenderer/AVTransport/Control", ""urn:schemas-upnp-org:service:AVTransport:1#GetTransportInfo"", "<u:GetTransportInfo xmlns:u="urn:schemas-upnp-org:service:AVTransport:1">0</u:GetTransportInfo>", "u:GetTransportInfoResponse", undefined)
2018-01-08 16:42:06 stderr Mon, 08 Jan 2018 16:42:06 GMT sonos Sonos.currentState(undefined)
2018-01-08 16:42:06 stderr Mon, 08 Jan 2018 16:42:06 GMT Accessory [Homebridge] Getting value for Characteristic "On"
2018-01-08 16:42:06 stderr Mon, 08 Jan 2018 16:42:06 GMT sonos Sonos.request("/MediaRenderer/RenderingControl/Control", ""urn:schemas-upnp-org:service:RenderingControl:1#GetVolume"", "<u:GetVolume xmlns:u="urn:schemas-upnp-org:service:RenderingControl:1">0Master</u:GetVolume>", "u:GetVolumeResponse", undefined)
2018-01-08 16:42:06 stderr Mon, 08 Jan 2018 16:42:06 GMT sonos Sonos.getVolume(callback)
2018-01-08 16:42:06 stderr Mon, 08 Jan 2018 16:42:06 GMT Accessory [Homebridge] Getting value for Characteristic "Volume"
2018-01-08 16:42:06 stdout [2018-1-8 16:42:06] [HttpWebHooks] Getting current state for 'light1'...
2018-01-08 16:42:06 stderr Mon, 08 Jan 2018 16:42:06 GMT Accessory [Homebridge] Got Characteristic "On" value: true
2018-01-08 16:42:06 stderr Mon, 08 Jan 2018 16:42:06 GMT Accessory [Homebridge] Getting value for Characteristic "On"
2018-01-08 16:42:06 stderr Mon, 08 Jan 2018 16:42:06 GMT Accessory [Homebridge] Got Characteristic "On" value: false
2018-01-08 16:42:06 stderr Mon, 08 Jan 2018 16:42:06 GMT Accessory [Homebridge] Getting value for Characteristic "On"
2018-01-08 16:42:06 stdout [2018-1-8 16:42:06] [NukiBridge] Getting current state for 'maintainance-switch-refreshall'...
2018-01-08 16:42:06 stderr Mon, 08 Jan 2018 16:42:06 GMT HAPServer [00:11:32:51:28:B3] HAP Request: GET /characteristics?id=24.9,68.10,35.16,35.9,22.9,23.9
2018-01-08 16:42:06 stderr Mon, 08 Jan 2018 16:42:06 GMT EventedHTTPServer [::ffff:10.0.1.132] HTTP request: /characteristics?id=24.9,68.10,35.16,35.9,22.9,23.9
2018-01-08 16:42:03 stderr Mon, 08 Jan 2018 16:42:03 GMT EventedHTTPServer [::ffff:10.0.1.132] Sending HTTP event '30.9' with data: {"characteristics":[{"aid":30,"iid":9,"value":0}]}
2018-01-08 16:42:03 stderr Mon, 08 Jan 2018 16:42:03 GMT EventedHTTPServer [::ffff:10.0.1.109] Sending HTTP event '30.9' with data: {"characteristics":[{"aid":30,"iid":9,"value":0}]}
2018-01-08 16:42:03 stdout [2018-1-8 16:42:03] [HttpWebHooks] Change HomeKit state for contact sensor to 'true'.
2018-01-08 16:42:03 stderr Mon, 08 Jan 2018 16:42:03 GMT EventedHTTPServer [::ffff:10.0.1.132] Sending HTTP event '30.9' with data: {"characteristics":[{"aid":30,"iid":9,"value":1}]}
2018-01-08 16:42:03 stderr Mon, 08 Jan 2018 16:42:03 GMT EventedHTTPServer [::ffff:10.0.1.109] Sending HTTP event '30.9' with data: {"characteristics":[{"aid":30,"iid":9,"value":1}]}
2018-01-08 16:42:03 stdout [2018-1-8 16:42:03] [HttpWebHooks] Change HomeKit state for contact sensor to 'false'.
2018-01-08 16:42:00 stderr Mon, 08 Jan 2018 16:42:00 GMT EventedHTTPServer [::ffff:10.0.1.109] HTTP Response is finished
2018-01-08 16:42:00 stderr Mon, 08 Jan 2018 16:42:00 GMT Accessory [Homebridge] Registering Characteristic "On" for events
2018-01-08 16:42:00 stderr Mon, 08 Jan 2018 16:42:00 GMT Accessory [Homebridge] Processing characteristic set: [{"aid":65,"iid":10,"ev":true}]
2018-01-08 16:42:00 stderr Mon, 08 Jan 2018 16:42:00 GMT HAPServer [00:11:32:51:28:B3] HAP Request: PUT /characteristics
2018-01-08 16:42:00 stderr Mon, 08 Jan 2018 16:42:00 GMT EventedHTTPServer [::ffff:10.0.1.109] HTTP request: /characteristics
2018-01-08 16:42:00 stderr Mon, 08 Jan 2018 16:42:00 GMT EventedHTTPServer [::ffff:10.0.1.109] HTTP Response is finished
2018-01-08 16:42:00 stderr Mon, 08 Jan 2018 16:42:00 GMT Accessory [Homebridge] Registering Characteristic "Volume" for events
2018-01-08 16:42:00 stderr Mon, 08 Jan 2018 16:42:00 GMT Accessory [Homebridge] Registering Characteristic "On" for events
2018-01-08 16:42:00 stderr Mon, 08 Jan 2018 16:42:00 GMT Accessory [Homebridge] Processing characteristic set: [{"aid":25,"iid":9,"ev":true},{"aid":25,"iid":16,"ev":true}]
2018-01-08 16:42:00 stderr Mon, 08 Jan 2018 16:42:00 GMT HAPServer [00:11:32:51:28:B3] HAP Request: PUT /characteristics
2018-01-08 16:42:00 stderr Mon, 08 Jan 2018 16:42:00 GMT EventedHTTPServer [::ffff:10.0.1.109] HTTP request: /characteristics
2018-01-08 16:42:00 stderr Mon, 08 Jan 2018 16:42:00 GMT EventedHTTPServer [::ffff:10.0.1.109] HTTP Response is finished
2018-01-08 16:42:00 stderr Mon, 08 Jan 2018 16:42:00 GMT Accessory [Homebridge] Registering Characteristic "On" for events
2018-01-08 16:42:00 stderr Mon, 08 Jan 2018 16:42:00 GMT Accessory [Homebridge] Processing characteristic set: [{"aid":22,"iid":9,"ev":true}]
2018-01-08 16:42:00 stderr Mon, 08 Jan 2018 16:42:00 GMT HAPServer [00:11:32:51:28:B3] HAP Request: PUT /characteristics
2018-01-08 16:42:00 stderr Mon, 08 Jan 2018 16:42:00 GMT EventedHTTPServer [::ffff:10.0.1.109] HTTP request: /characteristics
2018-01-08 16:42:00 stderr Mon, 08 Jan 2018 16:42:00 GMT EventedHTTPServer [::ffff:10.0.1.109] HTTP Response is finished
2018-01-08 16:42:00 stderr Mon, 08 Jan 2018 16:42:00 GMT Accessory [Homebridge] Registering Characteristic "Volume" for events
2018-01-08 16:42:00 stderr Mon, 08 Jan 2018 16:42:00 GMT Accessory [Homebridge] Registering Characteristic "On" for events
2018-01-08 16:42:00 stderr Mon, 08 Jan 2018 16:42:00 GMT Accessory [Homebridge] Processing characteristic set: [{"aid":27,"iid":9,"ev":true},{"aid":27,"iid":16,"ev":true}]
2018-01-08 16:42:00 stderr Mon, 08 Jan 2018 16:42:00 GMT HAPServer [00:11:32:51:28:B3] HAP Request: PUT /characteristics
2018-01-08 16:42:00 stderr Mon, 08 Jan 2018 16:42:00 GMT EventedHTTPServer [::ffff:10.0.1.109] HTTP request: /characteristics
2018-01-08 16:42:00 stderr Mon, 08 Jan 2018 16:42:00 GMT EventedHTTPServer [::ffff:10.0.1.109] HTTP Response is finished
2018-01-08 16:42:00 stderr Mon, 08 Jan 2018 16:42:00 GMT Accessory [Homebridge] Registering Characteristic "On" for events
2018-01-08 16:42:00 stderr Mon, 08 Jan 2018 16:42:00 GMT Accessory [Homebridge] Processing characteristic set: [{"aid":67,"iid":10,"ev":true}]
2018-01-08 16:42:00 stderr Mon, 08 Jan 2018 16:42:00 GMT HAPServer [00:11:32:51:28:B3] HAP Request: PUT /characteristics
2018-01-08 16:42:00 stderr Mon, 08 Jan 2018 16:42:00 GMT EventedHTTPServer [::ffff:10.0.1.109] HTTP request: /characteristics
2018-01-08 16:42:00 stderr Mon, 08 Jan 2018 16:42:00 GMT EventedHTTPServer [::ffff:10.0.1.109] HTTP Response is finished
2018-01-08 16:42:00 stderr Mon, 08 Jan 2018 16:42:00 GMT Accessory [Homebridge] Registering Characteristic "Status Low Battery" for events
2018-01-08 16:42:00 stderr Mon, 08 Jan 2018 16:42:00 GMT Accessory [Homebridge] Registering Characteristic "Charging State" for events
2018-01-08 16:42:00 stderr Mon, 08 Jan 2018 16:42:00 GMT Accessory [Homebridge] Registering Characteristic "Battery Level" for events
2018-01-08 16:42:00 stderr Mon, 08 Jan 2018 16:42:00 GMT Accessory [Homebridge] Registering Characteristic "Lock Target State" for events
2018-01-08 16:42:00 stderr Mon, 08 Jan 2018 16:42:00 GMT Accessory [Homebridge] Registering Characteristic "Lock Current State" for events
2018-01-08 16:42:00 stderr Mon, 08 Jan 2018 16:42:00 GMT Accessory [Homebridge] Registering Characteristic "Lock Target State" for events
2018-01-08 16:42:00 stderr Mon, 08 Jan 2018 16:42:00 GMT Accessory [Homebridge] Registering Characteristic "Lock Current State" for events
2018-01-08 16:42:00 stderr Mon, 08 Jan 2018 16:42:00 GMT Accessory [Homebridge] Registering Characteristic "Lock Target State" for events
2018-01-08 16:42:00 stderr Mon, 08 Jan 2018 16:42:00 GMT Accessory [Homebridge] Registering Characteristic "Lock Current State" for events
2018-01-08 16:42:00 stderr Mon, 08 Jan 2018 16:42:00 GMT Accessory [Homebridge] Processing characteristic set: [{"aid":46,"iid":13,"ev":true},{"aid":46,"iid":14,"ev":true},{"aid":46,"iid":9,"ev":true},{"aid":46,"iid":10,"ev":true},{"aid":46,"iid":17,"ev":true},{"aid":46,"iid":18,"ev":true},{"aid":46,"iid":21,"ev":true},{"aid":46,"iid":22,"ev":true},{"aid":46,"iid":23,"ev":true}]
2018-01-08 16:42:00 stderr Mon, 08 Jan 2018 16:42:00 GMT HAPServer [00:11:32:51:28:B3] HAP Request: PUT /characteristics
2018-01-08 16:42:00 stderr Mon, 08 Jan 2018 16:42:00 GMT EventedHTTPServer [::ffff:10.0.1.109] HTTP request: /characteristics
2018-01-08 16:42:00 stderr Mon, 08 Jan 2018 16:42:00 GMT EventedHTTPServer [::ffff:10.0.1.109] HTTP Response is finished
2018-01-08 16:42:00 stderr Mon, 08 Jan 2018 16:42:00 GMT Accessory [Homebridge] Registering Characteristic "On" for events
2018-01-08 16:42:00 stderr Mon, 08 Jan 2018 16:42:00 GMT Accessory [Homebridge] Processing characteristic set: [{"aid":56,"iid":10,"ev":true}]
2018-01-08 16:42:00 stderr Mon, 08 Jan 2018 16:42:00 GMT HAPServer [00:11:32:51:28:B3] HAP Request: PUT /characteristics
2018-01-08 16:42:00 stderr Mon, 08 Jan 2018 16:42:00 GMT EventedHTTPServer [::ffff:10.0.1.109] HTTP request: /characteristics
2018-01-08 16:42:00 stderr Mon, 08 Jan 2018 16:42:00 GMT EventedHTTPServer [::ffff:10.0.1.109] HTTP Response is finished
2018-01-08 16:42:00 stderr Mon, 08 Jan 2018 16:42:00 GMT Accessory [Homebridge] Registering Characteristic "On" for events
2018-01-08 16:42:00 stderr Mon, 08 Jan 2018 16:42:00 GMT Accessory [Homebridge] Processing characteristic set: [{"aid":23,"iid":9,"ev":true}]
2018-01-08 16:42:00 stderr Mon, 08 Jan 2018 16:42:00 GMT HAPServer [00:11:32:51:28:B3] HAP Request: PUT /characteristics
2018-01-08 16:42:00 stderr Mon, 08 Jan 2018 16:42:00 GMT EventedHTTPServer [::ffff:10.0.1.109] HTTP request: /characteristics
2018-01-08 16:42:00 stderr Mon, 08 Jan 2018 16:42:00 GMT EventedHTTPServer [::ffff:10.0.1.109] HTTP Response is finished
2018-01-08 16:42:00 stderr Mon, 08 Jan 2018 16:42:00 GMT Accessory [Homebridge] Registering Characteristic "On" for events
2018-01-08 16:42:00 stderr Mon, 08 Jan 2018 16:42:00 GMT Accessory [Homebridge] Processing characteristic set: [{"aid":24,"iid":9,"ev":true}]
2018-01-08 16:42:00 stderr Mon, 08 Jan 2018 16:42:00 GMT HAPServer [00:11:32:51:28:B3] HAP Request: PUT /characteristics
2018-01-08 16:42:00 stderr Mon, 08 Jan 2018 16:42:00 GMT EventedHTTPServer [::ffff:10.0.1.109] HTTP request: /characteristics
2018-01-08 16:42:00 stderr Mon, 08 Jan 2018 16:42:00 GMT EventedHTTPServer [::ffff:10.0.1.109] HTTP Response is finished
2018-01-08 16:42:00 stderr Mon, 08 Jan 2018 16:42:00 GMT Accessory [Homebridge] Registering Characteristic "On" for events
2018-01-08 16:42:00 stderr Mon, 08 Jan 2018 16:42:00 GMT Accessory [Homebridge] Processing characteristic set: [{"aid":62,"iid":10,"ev":true}]
2018-01-08 16:42:00 stderr Mon, 08 Jan 2018 16:42:00 GMT HAPServer [00:11:32:51:28:B3] HAP Request: PUT /characteristics
2018-01-08 16:42:00 stderr Mon, 08 Jan 2018 16:42:00 GMT EventedHTTPServer [::ffff:10.0.1.109] HTTP request: /characteristics
2018-01-08 16:42:00 stderr Mon, 08 Jan 2018 16:42:00 GMT EventedHTTPServer [::ffff:10.0.1.109] HTTP Response is finished
2018-01-08 16:42:00 stderr Mon, 08 Jan 2018 16:42:00 GMT Accessory [Homebridge] Registering Characteristic "On" for events
2018-01-08 16:42:00 stderr Mon, 08 Jan 2018 16:42:00 GMT Accessory [Homebridge] Processing characteristic set: [{"aid":55,"iid":10,"ev":true}]
2018-01-08 16:42:00 stderr Mon, 08 Jan 2018 16:42:00 GMT HAPServer [00:11:32:51:28:B3] HAP Request: PUT /characteristics
2018-01-08 16:42:00 stderr Mon, 08 Jan 2018 16:42:00 GMT EventedHTTPServer [::ffff:10.0.1.109] HTTP request: /characteristics
2018-01-08 16:42:00 stderr Mon, 08 Jan 2018 16:42:00 GMT EventedHTTPServer [::ffff:10.0.1.109] HTTP Response is finished
2018-01-08 16:42:00 stderr Mon, 08 Jan 2018 16:42:00 GMT Accessory [Homebridge] Registering Characteristic "Volume" for events
2018-01-08 16:42:00 stderr Mon, 08 Jan 2018 16:42:00 GMT Accessory [Homebridge] Registering Characteristic "On" for events
2018-01-08 16:42:00 stderr Mon, 08 Jan 2018 16:42:00 GMT Accessory [Homebridge] Processing characteristic set: [{"aid":35,"iid":9,"ev":true},{"aid":35,"iid":16,"ev":true}]
2018-01-08 16:42:00 stderr Mon, 08 Jan 2018 16:42:00 GMT HAPServer [00:11:32:51:28:B3] HAP Request: PUT /characteristics
2018-01-08 16:42:00 stderr Mon, 08 Jan 2018 16:42:00 GMT EventedHTTPServer [::ffff:10.0.1.109] HTTP request: /characteristics
2018-01-08 16:42:00 stderr Mon, 08 Jan 2018 16:42:00 GMT EventedHTTPServer [::ffff:10.0.1.109] HTTP Response is finished
2018-01-08 16:42:00 stderr Mon, 08 Jan 2018 16:42:00 GMT Accessory [Homebridge] Registering Characteristic "On" for events
2018-01-08 16:42:00 stderr Mon, 08 Jan 2018 16:42:00 GMT Accessory [Homebridge] Processing characteristic set: [{"aid":61,"iid":10,"ev":true}]
2018-01-08 16:42:00 stderr Mon, 08 Jan 2018 16:42:00 GMT HAPServer [00:11:32:51:28:B3] HAP Request: PUT /characteristics
2018-01-08 16:42:00 stderr Mon, 08 Jan 2018 16:42:00 GMT EventedHTTPServer [::ffff:10.0.1.109] HTTP request: /characteristics
2018-01-08 16:42:00 stderr Mon, 08 Jan 2018 16:42:00 GMT EventedHTTPServer [::ffff:10.0.1.109] HTTP Response is finished
2018-01-08 16:42:00 stderr Mon, 08 Jan 2018 16:42:00 GMT Accessory [Homebridge] Registering Characteristic "Programmable Switch Event" for events
2018-01-08 16:42:00 stderr Mon, 08 Jan 2018 16:42:00 GMT Accessory [Homebridge] Processing characteristic set: [{"aid":52,"iid":9,"ev":true}]
2018-01-08 16:42:00 stderr Mon, 08 Jan 2018 16:42:00 GMT HAPServer [00:11:32:51:28:B3] HAP Request: PUT /characteristics
2018-01-08 16:42:00 stderr Mon, 08 Jan 2018 16:42:00 GMT EventedHTTPServer [::ffff:10.0.1.109] HTTP request: /characteristics
2018-01-08 16:42:00 stderr Mon, 08 Jan 2018 16:42:00 GMT EventedHTTPServer [::ffff:10.0.1.109] HTTP Response is finished
2018-01-08 16:42:00 stderr Mon, 08 Jan 2018 16:42:00 GMT Accessory [Homebridge] Registering Characteristic "On" for events
2018-01-08 16:42:00 stderr Mon, 08 Jan 2018 16:42:00 GMT Accessory [Homebridge] Processing characteristic set: [{"aid":64,"iid":10,"ev":true}]
2018-01-08 16:42:00 stderr Mon, 08 Jan 2018 16:42:00 GMT HAPServer [00:11:32:51:28:B3] HAP Request: PUT /characteristics
2018-01-08 16:42:00 stderr Mon, 08 Jan 2018 16:42:00 GMT EventedHTTPServer [::ffff:10.0.1.109] HTTP request: /characteristics
2018-01-08 16:42:00 stderr Mon, 08 Jan 2018 16:42:00 GMT EventedHTTPServer [::ffff:10.0.1.109] HTTP Response is finished
2018-01-08 16:42:00 stderr Mon, 08 Jan 2018 16:42:00 GMT Accessory [Homebridge] Registering Characteristic "On" for events
2018-01-08 16:42:00 stderr Mon, 08 Jan 2018 16:42:00 GMT Accessory [Homebridge] Processing characteristic set: [{"aid":68,"iid":10,"ev":true}]
2018-01-08 16:42:00 stderr Mon, 08 Jan 2018 16:42:00 GMT HAPServer [00:11:32:51:28:B3] HAP Request: PUT /characteristics
2018-01-08 16:42:00 stderr Mon, 08 Jan 2018 16:42:00 GMT EventedHTTPServer [::ffff:10.0.1.109] HTTP request: /characteristics
2018-01-08 16:42:00 stderr Mon, 08 Jan 2018 16:42:00 GMT EventedHTTPServer [::ffff:10.0.1.109] HTTP Response is finished
2018-01-08 16:42:00 stderr Mon, 08 Jan 2018 16:42:00 GMT Accessory [Homebridge] Registering Characteristic "Status Low Battery" for events
2018-01-08 16:42:00 stderr Mon, 08 Jan 2018 16:42:00 GMT Accessory [Homebridge] Registering Characteristic "Charging State" for events
2018-01-08 16:42:00 stderr Mon, 08 Jan 2018 16:42:00 GMT Accessory [Homebridge] Registering Characteristic "Battery Level" for events
2018-01-08 16:42:00 stderr Mon, 08 Jan 2018 16:42:00 GMT Accessory [Homebridge] Registering Characteristic "Lock Target State" for events
2018-01-08 16:42:00 stderr Mon, 08 Jan 2018 16:42:00 GMT Accessory [Homebridge] Registering Characteristic "Lock Current State" for events
2018-01-08 16:42:00 stderr Mon, 08 Jan 2018 16:42:00 GMT Accessory [Homebridge] Processing characteristic set: [{"aid":47,"iid":9,"ev":true},{"aid":47,"iid":10,"ev":true},{"aid":47,"iid":13,"ev":true},{"aid":47,"iid":14,"ev":true},{"aid":47,"iid":15,"ev":true}]
2018-01-08 16:42:00 stderr Mon, 08 Jan 2018 16:42:00 GMT HAPServer [00:11:32:51:28:B3] HAP Request: PUT /characteristics
2018-01-08 16:42:00 stderr Mon, 08 Jan 2018 16:42:00 GMT EventedHTTPServer [::ffff:10.0.1.109] HTTP request: /characteristics
2018-01-08 16:42:00 stderr Mon, 08 Jan 2018 16:42:00 GMT EventedHTTPServer [::ffff:10.0.1.109] HTTP Response is finished
2018-01-08 16:42:00 stderr Mon, 08 Jan 2018 16:42:00 GMT Accessory [Homebridge] Registering Characteristic "On" for events
2018-01-08 16:42:00 stderr Mon, 08 Jan 2018 16:42:00 GMT Accessory [Homebridge] Processing characteristic set: [{"aid":66,"iid":10,"ev":true}]
2018-01-08 16:42:00 stderr Mon, 08 Jan 2018 16:42:00 GMT HAPServer [00:11:32:51:28:B3] HAP Request: PUT /characteristics
2018-01-08 16:42:00 stderr Mon, 08 Jan 2018 16:42:00 GMT EventedHTTPServer [::ffff:10.0.1.109] HTTP request: /characteristics
2018-01-08 16:41:54 stderr Mon, 08 Jan 2018 16:41:54 GMT EventedHTTPServer [::ffff:10.0.1.132] HTTP Response is finished
2018-01-08 16:41:54 stderr Mon, 08 Jan 2018 16:41:54 GMT EventedHTTPServer [::ffff:10.0.1.132] Muting event '47.14' notification for this connection since it originated here.
2018-01-08 16:41:54 stderr Mon, 08 Jan 2018 16:41:54 GMT Accessory [Homebridge] Got Characteristic "Charging State" value: 2
2018-01-08 16:41:54 stderr Mon, 08 Jan 2018 16:41:54 GMT Accessory [Homebridge] Getting value for Characteristic "Charging State"
2018-01-08 16:41:54 stderr Mon, 08 Jan 2018 16:41:54 GMT EventedHTTPServer [::ffff:10.0.1.132] Muting event '47.13' notification for this connection since it originated here.
2018-01-08 16:41:54 stderr Mon, 08 Jan 2018 16:41:54 GMT Accessory [Homebridge] Got Characteristic "Battery Level" value: 100
2018-01-08 16:41:54 stderr Mon, 08 Jan 2018 16:41:54 GMT Accessory [Homebridge] Getting value for Characteristic "Battery Level"
2018-01-08 16:41:54 stderr Mon, 08 Jan 2018 16:41:54 GMT HAPServer [00:11:32:51:28:B3] HAP Request: GET /characteristics?id=47.13,47.14
2018-01-08 16:41:54 stderr Mon, 08 Jan 2018 16:41:54 GMT EventedHTTPServer [::ffff:10.0.1.132] HTTP request: /characteristics?id=47.13,47.14
2018-01-08 16:41:52 stderr Mon, 08 Jan 2018 16:41:52 GMT EventedHTTPServer [::ffff:10.0.1.132] Sending HTTP event '15.8' with data: {"characteristics":[{"aid":15,"iid":8,"value":true}]}
2018-01-08 16:41:52 stderr Mon, 08 Jan 2018 16:41:52 GMT EventedHTTPServer [::ffff:10.0.1.109] Sending HTTP event '15.8' with data: {"characteristics":[{"aid":15,"iid":8,"value":true}]}
2018-01-08 16:41:49 stderr Mon, 08 Jan 2018 16:41:49 GMT EventedHTTPServer [::ffff:10.0.1.132] HTTP Response is finished
`

@NorthernMan54
Copy link
Contributor

@benzman81 That looks okay from the point of view of events. Your devices are at HAP id 30.9 and 47.10

I see these lines, which is showing the events going to your devices @ 10.0.1.132 and 10.0.1.109, and this looks normal. The line I was look at was Sending "HTTP event"

My only comment is that it seems to flip state back and forth very quickly, less than a second @ 16:42:03 and over 5 seconds @ 16:42:43

Have you checked in the home app that notifications are enabled for the accessory?

08 16:42:48 | stderr | Mon, 08 Jan 2018 16:42:48 GMT EventedHTTPServer [::ffff:10.0.1.132] Sending HTTP event '30.9' with data: {"characteristics":[{"aid":30,"iid":9,"value":0}]} 2018-01-08 16:42:48 | stderr | Mon, 08 Jan 2018 16:42:48 GMT EventedHTTPServer [::ffff:10.0.1.109] Sending HTTP event '30.9' with data: {"characteristics":[{"aid":30,"iid":9,"value":0}]} 2018-01-08 16:42:48 | stdout | [2018-1-8 16:42:48] [HttpWebHooks] Change HomeKit state for contact sensor to 'true'. 2018-01-08 16:42:43 | stderr | Mon, 08 Jan 2018 16:42:43 GMT EventedHTTPServer [::ffff:10.0.1.132] Sending HTTP event '30.9' with data: {"characteristics":[{"aid":30,"iid":9,"value":1}]} 2018-01-08 16:42:43 | stderr | Mon, 08 Jan 2018 16:42:43 GMT EventedHTTPServer [::ffff:10.0.1.109] Sending HTTP event '30.9' with data: {"characteristics":[{"aid":30,"iid":9,"value":1}]} 2018-01-08 16:42:43 | stdout | [2018-1-8 16:42:43] [HttpWebHooks] Change HomeKit state for contact sensor to 'false'. 2018-01-08 16:42:29 | stdout | [2018-1-

PS When sharing a large log, using a file sharing service like google drive may be preferred as it makes it easier to pull into an editor for review.

@benzman81
Copy link
Author

I just don't get it. I tested a lot using my plugin homebridge-http-webhooks. As test I added a contact sensor. Then I keep calling the url to update the state with http://ip:51828/?accessoryId=window1&state=true and http://ip:51828/?accessoryId=window1&state=false. I would expect, that switching between true and false always gives me a notification, but it just doesn't. If I have the Home app open and keep calling these URLs, I always see the state of the contact sensor switching as expected. It just seems to be an issue with notifications. Maybe it's not a bug of homebridge/hap-nodejs but a bug of homekit. I would be glad if someone could try it out using my plugin and investigating the problem. I have no clue now how to fix this.

@ebaauw
Copy link
Contributor

ebaauw commented Jan 18, 2018

I get notifications alright from Contact Sensors exposed by homebridge-hue. Sorry for asking the obvious, but you did switch on Notifications in Apple's Home app on each iPhone/iPad you want to receive them?

@benzman81
Copy link
Author

Hi, no problem for asking. I turned on notifications for the sensor on my iphone and my ipad, and both dont get notifications pretty often, and pretty often they do, I would say success rate is about 50% ;-)

@NorthernMan54
Copy link
Contributor

NorthernMan54 commented Jan 18, 2018 via email

@ebaauw
Copy link
Contributor

ebaauw commented Jan 18, 2018

HomeKit notification blues... Maybe this helps: ebaauw/homebridge-hue#118 (comment)

@benzman81
Copy link
Author

Ok, its pretty weird. I can see the following behavior.

  • First http call to homebride plugin to update contact sensor state: notification works
  • Second http call to homebride plugin to update contact sensor state: notification works
  • Third and more http calls to homebride plugin to update contact sensor state: no more notifications

I can see a similar behavior using notifications for locks. Motion, smoke, and occupancy work as expected. Using debug, I can see that homebridge/HapNode.js is always sending the events, but notifications stop after third request. What is also interesting, that I can repeat the same scenario after waiting a few minutes. Sometimes even starts working again after some more seconds.

@benzman81
Copy link
Author

Ok, I just added automations based on a contact sensor and a lock. And they are always working.
Could it be an apple bug regarding the notifications for contact sensor and locks?

@p3ntium
Copy link

p3ntium commented Mar 3, 2018

Hi:
how can I use the updateValue function from external script?
Now I'm sending the external changes to HAPNode through an HTTP request like this:

curl -sX PUT $url --header "$content" --header "$auth" --data "{\"characteristics\":[{\"aid\":1,\"iid\":10,\"value\":$accion}]}"

And it always fires the "set" event, and turn on/off the light. I want to only update the state of the characteristic, and not change the state.

Thanks!

@NorthernMan54
Copy link
Contributor

NorthernMan54 commented Mar 3, 2018 via email

@p3ntium
Copy link

p3ntium commented Mar 5, 2018

Any idea or recommendation? I have my house with X10 elements and I send the update states to HAP-NodeJS through the url mentioned above, then it always execute again the command sent in the update...

Thanks in advance

@NorthernMan54
Copy link
Contributor

NorthernMan54 commented Mar 5, 2018 via email

@p3ntium
Copy link

p3ntium commented Mar 5, 2018

Great! My X10 interface is Heyu too.
I have a problem for use Homebridge, because the X10 elements at my home only represents the 20% of the total, I have another elements DIY and other from unknown protocols, and all of them integrated with HAP-NodeJS. If I change to Homebridge I will have the update feature, but I will need to rewrite all the code to integrate with the other 80% of the elements.
Or... It's a good idea to combine the HAP-NodeJS with Homebridge? Will be two HAP servers on my house?

Regards!
Fran

@NorthernMan54
Copy link
Contributor

NorthernMan54 commented Mar 5, 2018 via email

@p3ntium
Copy link

p3ntium commented Mar 15, 2018

Update:
I've implemented the 'update' event in addition to the existent 'set' and 'get'. Now I can update the state of a characteristic through an HTTP request like this:

curl -sX PUT http://$host:$port/update --header "$content" --header "$auth" --data "{"characteristics":[{"aid":1,"iid":10,"value":$accion}]}"

If someone wants to check I can send the modified files.

Regards!!

@Tkg8455
Copy link

Tkg8455 commented Apr 9, 2018

Hello Everyone,
I'm very confused on these issues. This is what one try to do;
-Control the lights with 8 channel relay (I can do it)

  • Beside the relay control, I will use a 2way physical switch. I will put an ADC (MP3008) and current sensor (ACS712). I want to change the status in home app, when the lamp is on/off from physical switch.
  • Temperature sensor (LM35) to show in home app

Can you show me a way to do this.
Thank you

@p3ntium
Copy link

p3ntium commented Apr 9, 2018

Hi:
the only way (as I know) to update externally the value of a characteristic for an accessory is by an http request. That request must be like this:

curl -sX PUT http://localhost:$port/characteristics --header "Content-Type:Application/json" --header "Authorization: $pincode" --data "{"characteristics":[{"aid":1,"iid":$iid,"value":$value}]}"

Do you understand?

Regards
Fran

@Tkg8455
Copy link

Tkg8455 commented Apr 9, 2018

I'm very sorry but can you make it more clarify for me.
I found a python script to get values from ADC. How do I get combine Core.js and python script.
Can you give an example?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

7 participants