Page 19 of 86

Re: eDomoticz Homebridge-Plugin

Posted: Wednesday 29 June 2016 17:35
by Marci
NewFolk wrote:
Do you know about https://github.com/dotsam/homebridge-milight ?

I`m using it 2 weeks and it is pretty stable.
Yup... however communicating with the milight api isn't of much use if trying to bridge Domoticz...!?

Re: eDomoticz Homebridge-Plugin

Posted: Wednesday 29 June 2016 20:18
by BasPost
I don't know what I'm doing wrong... I'm getting frustrated.
Every attempt to install node.js results in errors, now I'm getting segmentation fault when doing node -v

I have a RPi B+ with clean install of Domoticz SD card image, Rasbian Jessie

Edit:
Thanks to this post: viewtopic.php?f=36&t=10272&start=340#p89318 I've managed to get it working again!
pffff... what a trouble to find the right info.
Tomorrow I will proceed to get it working with the script for starting after boot

Re: eDomoticz Homebridge-Plugin

Posted: Wednesday 29 June 2016 22:26
by NewFolk
Marci wrote:Yup... however communicating with the milight api isn't of much use if trying to bridge Domoticz...!?
Yes :(
So I looking forward for RGB support in eDomoticz ;)

Re: eDomoticz Homebridge-Plugin

Posted: Sunday 03 July 2016 15:14
by deejc
I'm back!!! I moved everything back over from the Vera to domoticz and removed verahomekitbridge and reinstalled e-domoticz


Sent from my iPhone using Tapatalk

Re: eDomoticz Homebridge-Plugin

Posted: Sunday 03 July 2016 19:43
by deejc
Am I right in thinking the shim still can't access domoticz scenes ? I have a dummy switches for some scenes as I remember it couldn't access them when I used it last time


Sent from my iPhone using Tapatalk

Re: eDomoticz Homebridge-Plugin

Posted: Friday 08 July 2016 10:45
by chrispazz
Hi!
I have just installed Domoticz (with mochad), Homebridge and the Domoticz plugin.

While X10 lights are working good, I have some problems with sensor movements (Marmitek MS13).
In Domoticz it is managed correctly and it changes status when movement is detected but this status changes are not intercepted by homebridge.
The movement sensor is correctly exposed by homebridge (I can see in in Eve and Homekit) but it never chages is status.

Any idea?

Thank you
Chris

Re: eDomoticz Homebridge-Plugin

Posted: Friday 08 July 2016 16:10
by Marci
@deejc - correct, virtual switches are still the method.

@chrispazz - changes aren't pushed, they're pulled. You'd need to open Eve and pull down / scroll up&down to trigger a refresh from Domoticz. Only other solution would be a looped timer that retrieves status from Domoticz every few seconds, but this would end up rather resource intensive, and give you a sluggish response to commands as you'd have to wait for a gap before commands would be received and processed.

Re: eDomoticz Homebridge-Plugin

Posted: Friday 08 July 2016 16:20
by chrispazz
Thank you Marci.
I was asking because for X10 system a triggered movement detected from a MS13 acts like a switch sending on power line a ON command on the configured address.....

In this case sensor movements (as alerts or trigger) are pretty useless if exposed on Homekit....

Am I wrong?

Thanks

eDomoticz Homebridge-Plugin

Posted: Friday 08 July 2016 17:03
by Marci
Nope, you're correct... motion sensors etc end up useless. Actions & triggers based on motion need to be defined and handled in Domoticz, rather than within HomeKit...

You can use pushbullett or an MQTT client to receive realtime notifications of motion outside of HomeKit... S'about the only method at the moment, until I can write routines to separate out motion / occupation sensors so they can be polled on a timer.

Re: eDomoticz Homebridge-Plugin

Posted: Friday 08 July 2016 17:06
by chrispazz
Great, waiting for next upgrade then....

:)

Re: eDomoticz Homebridge-Plugin

Posted: Tuesday 12 July 2016 11:33
by TheRamon
Amazing plugin, thank you.


I have added support for RGB lamps:

https://github.com/PatchworkBoy/homebri ... cz/pull/27

When this gets approved one could change the colour though homekit too.

Re: eDomoticz Homebridge-Plugin

Posted: Tuesday 12 July 2016 18:19
by Marci
Excellent - thanks Ramon... I've just merged it in.

Folks - wget the latest raw index.js from GitHub to get the above update. Am afk at the mo so can't update the npmjs repo...

Re: eDomoticz Homebridge-Plugin

Posted: Tuesday 12 July 2016 20:21
by NewFolk
Hello,

Great News. Thank you !!!
But unfortunately Milight bulbs does not work for me.

I have type: lighting limitless/applamp, RGBW, Dimmer.

And my lamp only work as dimmer, without RGB.

Re: eDomoticz Homebridge-Plugin

Posted: Tuesday 12 July 2016 21:41
by Marci
Without JSON output for your device we can't really do anything. Instructions are in first post for getting this...

Re: eDomoticz Homebridge-Plugin

Posted: Tuesday 12 July 2016 21:45
by TheRamon
That's weird, my lamp has got the same subtype. "RGBW".

Can you actually change the colour of your lights through Domoticz? The update for the bridge uses the same method.
Try cleaning your homebridge cache (~/.homebridge/persist) to remove all 'cached' data, but prepare to re-pair your homekit bridge though.

EDIT: ^ Read the post above 8-)

Re: eDomoticz Homebridge-Plugin

Posted: Wednesday 13 July 2016 8:39
by NewFolk
Can you actually change the colour of your lights through Domoticz?
Yes I can. I use https://github.com/dotsam/homebridge-milight in parallel and it is working good.
Try cleaning your homebridge cache (~/.homebridge/persist)
I`m not ready to reconfig because of my wife use it every day. (I`m afraid to change something :? )
Without JSON output for your device we can't really do anything.

I hope this will be enough. Device name is "Living room main"
Spoiler: show

Code: Select all

root@Kitchen:~# DEBUG=* /usr/bin/homebridge -U /var/homebridge
*** WARNING *** The program 'nodejs' uses the Apple Bonjour compatibility layer of Avahi.
*** WARNING *** Please fix your application to use the native API of Avahi!
*** WARNING *** For more information see <http://0pointer.de/avahi-compat?s=libdns_sd&e=nodejs>
*** WARNING *** The program 'nodejs' called 'DNSServiceRegister()' which is not supported (or only supported partially) in the Apple Bonjour compatibility layer of Avahi.
*** WARNING *** Please fix your application to use the native API of Avahi!
*** WARNING *** For more information see <http://0pointer.de/avahi-compat?s=libdns_sd&e=nodejs&f=DNSServiceRegister>
[7/12/2016, 9:14:53 PM] Loaded plugin: homebridge-edomoticz
[7/12/2016, 9:14:54 PM] Registering accessory 'homebridge-edomoticz.eDomoticz'
[7/12/2016, 9:14:54 PM] Registering platform 'homebridge-edomoticz.eDomoticz'
[7/12/2016, 9:14:54 PM] ---
[7/12/2016, 9:14:54 PM] Loaded plugin: homebridge-milight
[7/12/2016, 9:14:54 PM] Registering platform 'homebridge-milight.MiLight'
[7/12/2016, 9:14:54 PM] ---
[7/12/2016, 9:14:54 PM] Loaded config.json with 0 accessories and 2 platforms.
[7/12/2016, 9:14:54 PM] ---
[7/12/2016, 9:14:54 PM] Loading 2 platforms...
[7/12/2016, 9:14:54 PM] [eDomoticz] Initializing eDomoticz platform...
[7/12/2016, 9:14:54 PM] [eDomoticz] Fetching Domoticz lights and switches...
[7/12/2016, 9:14:54 PM] [MiLight] Initializing MiLight platform...
[7/12/2016, 9:14:54 PM] [MiLight] Initializing platform accessory 'Torchere'...
[7/12/2016, 9:14:54 PM] [MiLight] Initializing platform accessory 'Living'...
[7/12/2016, 9:14:54 PM] Loading 0 accessories...
[7/12/2016, 9:14:54 PM] [eDomoticz] Initializing platform accessory 'Bedroom TempHum'...
[7/12/2016, 9:14:54 PM] [eDomoticz] Initializing platform accessory 'Flexget'...
[7/12/2016, 9:14:54 PM] [eDomoticz] Initializing platform accessory 'Hall Motion'...
[7/12/2016, 9:14:54 PM] [eDomoticz] Initializing platform accessory 'Hall_LED'...
[7/12/2016, 9:14:54 PM] [eDomoticz] Initializing platform accessory 'Hall_Light'...
[7/12/2016, 9:14:54 PM] [eDomoticz] Initializing platform accessory 'Hall_TempHum'...
[7/12/2016, 9:14:54 PM] [eDomoticz] Initializing platform accessory 'Kitchen_Light'...
[7/12/2016, 9:14:54 PM] [eDomoticz] Initializing platform accessory 'Living room main'...
[7/12/2016, 9:14:54 PM] [eDomoticz] Initializing platform accessory 'WH_TempHum'...
Scan this code with your HomeKit App on your iOS device to pair with Homebridge:
                       
    ┌────────────┐     
    │ 031-45-154 │     
    └────────────┘     
                       
[7/12/2016, 9:14:54 PM] Homebridge is running on port 51826.
  EventedHTTPServer Server listening on port 51826 +0ms
  EventedHTTPServer [::ffff:192.168.1.131] New connection from client +836ms
  EventedHTTPServer [::ffff:192.168.1.131] HTTP server listening on port 44722 +7ms
  EventedHTTPServer [::ffff:192.168.1.131] HTTP request: /pair-verify +17ms
  HAPServer [CC:21:3E:E4:DE:33] HAP Request: POST /pair-verify +2ms
  HAPServer [CC:21:3E:E4:DE:33] Pair verify step 1/2 +8ms
  EventedHTTPServer [::ffff:192.168.1.131] HTTP Response is finished +44ms
  EventedHTTPServer [::ffff:192.168.1.131] HTTP request: /pair-verify +34ms
  HAPServer [CC:21:3E:E4:DE:33] HAP Request: POST /pair-verify +0ms
  HAPServer [CC:21:3E:E4:DE:33] Pair verify step 2/2 +3ms
  HAPServer [CC:21:3E:E4:DE:33] Client 407AACF9-CBCE-4F13-8115-B07BB2455767 verification complete +8ms
  EventedHTTPServer [::ffff:192.168.1.131] HTTP Response is finished +4ms
  EventedHTTPServer [::ffff:192.168.1.131] HTTP request: /accessories +15ms
  HAPServer [CC:21:3E:E4:DE:33] HAP Request: GET /accessories +0ms
  EventedHTTPServer [::ffff:192.168.1.131] HTTP Response is finished +19ms
  EventedHTTPServer [::ffff:192.168.1.131] HTTP request: /characteristics +480ms
  HAPServer [CC:21:3E:E4:DE:33] HAP Request: PUT /characteristics +0ms
  Accessory [Homebridge] Processing characteristic set: [{"aid":14,"iid":14,"ev":true},{"aid":15,"iid":14,"ev":true},{"aid":9,"iid":12,"ev":true},{"aid":2,"iid":11,"ev":true},{"aid":6,"iid":11,"ev":true},{"aid":3,"iid":12,"ev":true},{"aid":4,"iid":11,"ev":true},{"aid":7,"iid":12,"ev":true},{"aid":5,"iid":11,"ev":true},{"aid":16,"iid":12,"ev":true},{"aid":8,"iid":12,"ev":true}] +3ms
  Accessory [Homebridge] Registering Characteristic "Reachable" for events +3ms
  Accessory [Homebridge] Registering Characteristic "Reachable" for events +1ms
  Accessory [Homebridge] Registering Characteristic "Reachable" for events +0ms
  Accessory [Homebridge] Registering Characteristic "Reachable" for events +1ms
  Accessory [Homebridge] Registering Characteristic "Reachable" for events +0ms
  Accessory [Homebridge] Registering Characteristic "Reachable" for events +0ms
  Accessory [Homebridge] Registering Characteristic "Reachable" for events +0ms
  Accessory [Homebridge] Registering Characteristic "Reachable" for events +1ms
  Accessory [Homebridge] Registering Characteristic "Reachable" for events +0ms
  Accessory [Homebridge] Registering Characteristic "Reachable" for events +0ms
  Accessory [Homebridge] Registering Characteristic "Reachable" for events +0ms
  EventedHTTPServer [::ffff:192.168.1.131] HTTP Response is finished +2ms
  EventedHTTPServer [::ffff:192.168.1.131] HTTP request: /characteristics +79ms
  HAPServer [CC:21:3E:E4:DE:33] HAP Request: PUT /characteristics +0ms
  Accessory [Homebridge] Processing characteristic set: [{"aid":1,"iid":8,"ev":true},{"aid":1,"iid":9,"ev":true},{"aid":1,"iid":10,"ev":true}] +1ms
  Accessory [Homebridge] Registering Characteristic "State" for events +1ms
  Accessory [Homebridge] Registering Characteristic "Version" for events +0ms
  Accessory [Homebridge] Registering Characteristic "Control Point" for events +0ms
  EventedHTTPServer [::ffff:192.168.1.131] HTTP Response is finished +1ms
  EventedHTTPServer [::ffff:192.168.1.131] HTTP request: /characteristics +227ms
  HAPServer [CC:21:3E:E4:DE:33] HAP Request: PUT /characteristics +0ms
  Accessory [Homebridge] Processing characteristic set: [{"aid":2,"iid":9,"ev":true}] +1ms
  Accessory [Homebridge] Registering Characteristic "On" for events +1ms
  EventedHTTPServer [::ffff:192.168.1.131] HTTP Response is finished +0ms
  EventedHTTPServer [::ffff:192.168.1.131] HTTP request: /characteristics?id=16.10,16.9,15.12,15.11,15.10,2.9,14.11,14.12,14.10 +7s
  HAPServer [CC:21:3E:E4:DE:33] HAP Request: GET /characteristics?id=16.10,16.9,15.12,15.11,15.10,2.9,14.11,14.12,14.10 +0ms
  Accessory [Homebridge] Getting value for Characteristic "Brightness" +12ms
  Accessory [Homebridge] Getting value for Characteristic "On" +15ms
  Accessory [Homebridge] Getting value for Characteristic "Hue" +7ms
  Accessory [Homebridge] Got Characteristic "Hue" value: 0 +1ms
  Accessory [Homebridge] Getting value for Characteristic "Saturation" +1ms
  Accessory [Homebridge] Got Characteristic "Saturation" value: 0 +0ms
  Accessory [Homebridge] Getting value for Characteristic "Brightness" +1ms
  Accessory [Homebridge] Got Characteristic "Brightness" value: 0 +1ms
  Accessory [Homebridge] Getting value for Characteristic "On" +0ms
  Accessory [Homebridge] Getting value for Characteristic "Saturation" +4ms
  Accessory [Homebridge] Got Characteristic "Saturation" value: 0 +1ms
  Accessory [Homebridge] Getting value for Characteristic "Hue" +0ms
  Accessory [Homebridge] Got Characteristic "Hue" value: 0 +1ms
  Accessory [Homebridge] Getting value for Characteristic "Brightness" +0ms
  Accessory [Homebridge] Got Characteristic "Brightness" value: 0 +0ms
[7/12/2016, 9:15:03 PM] [eDomoticz] Data Received for Living room main: 99
  Accessory [Homebridge] Got Characteristic "Brightness" value: 99 +53ms
[7/12/2016, 9:15:03 PM] [eDomoticz] Data Received for Living room main: 1
  Accessory [Homebridge] Got Characteristic "On" value: 1 +7ms
[7/12/2016, 9:15:03 PM] [eDomoticz] Data Received for Flexget: 1
  Accessory [Homebridge] Got Characteristic "On" value: 1 +3ms
  EventedHTTPServer [::ffff:192.168.1.131] Muting event '2.9' notification for this connection since it originated here. +5ms
  EventedHTTPServer [::ffff:192.168.1.131] HTTP Response is finished +1ms
  EventedHTTPServer [::ffff:192.168.1.204] New connection from client +2s
  EventedHTTPServer [::ffff:192.168.1.204] HTTP server listening on port 39797 +1ms
  EventedHTTPServer [::ffff:192.168.1.204] HTTP request: /pair-verify +4ms
  HAPServer [CC:21:3E:E4:DE:33] HAP Request: POST /pair-verify +1ms
  HAPServer [CC:21:3E:E4:DE:33] Pair verify step 1/2 +1ms
  EventedHTTPServer [::ffff:192.168.1.204] HTTP Response is finished +13ms
  EventedHTTPServer [::ffff:192.168.1.204] HTTP request: /pair-verify +30ms
  HAPServer [CC:21:3E:E4:DE:33] HAP Request: POST /pair-verify +1ms
  HAPServer [CC:21:3E:E4:DE:33] Pair verify step 2/2 +2ms
  HAPServer [CC:21:3E:E4:DE:33] Client 10D7B848-E7C8-4FBC-BD7E-1622D3438F11 verification complete +3ms
  EventedHTTPServer [::ffff:192.168.1.204] HTTP Response is finished +2ms
  EventedHTTPServer [::ffff:192.168.1.72] New connection from client +1ms
  EventedHTTPServer [::ffff:192.168.1.72] HTTP server listening on port 37360 +1ms
  EventedHTTPServer [::ffff:192.168.1.72] HTTP request: /pair-verify +3ms
  HAPServer [CC:21:3E:E4:DE:33] HAP Request: POST /pair-verify +1ms
  HAPServer [CC:21:3E:E4:DE:33] Pair verify step 1/2 +0ms
  EventedHTTPServer [::ffff:192.168.1.72] HTTP Response is finished +12ms
  EventedHTTPServer [::ffff:192.168.1.204] HTTP request: /accessories +2ms
  HAPServer [CC:21:3E:E4:DE:33] HAP Request: GET /accessories +0ms
  EventedHTTPServer [::ffff:192.168.1.204] HTTP Response is finished +25ms
  EventedHTTPServer [::ffff:192.168.1.72] HTTP request: /pair-verify +38ms
  HAPServer [CC:21:3E:E4:DE:33] HAP Request: POST /pair-verify +0ms
  HAPServer [CC:21:3E:E4:DE:33] Pair verify step 2/2 +1ms
  HAPServer [CC:21:3E:E4:DE:33] Client DD2BE34E-2990-49EC-971E-1A94EC49F3E3 verification complete +3ms
  EventedHTTPServer [::ffff:192.168.1.72] HTTP Response is finished +1ms
  EventedHTTPServer [::ffff:192.168.1.72] HTTP request: /accessories +23ms
  HAPServer [CC:21:3E:E4:DE:33] HAP Request: GET /accessories +0ms
  EventedHTTPServer [::ffff:192.168.1.72] HTTP Response is finished +32ms
  EventedHTTPServer [::ffff:192.168.1.72] HTTP request: /characteristics +3s
  HAPServer [CC:21:3E:E4:DE:33] HAP Request: PUT /characteristics +0ms
  Accessory [Homebridge] Processing characteristic set: [{"aid":14,"iid":10,"ev":true}] +3ms
  Accessory [Homebridge] Registering Characteristic "Brightness" for events +1ms
  EventedHTTPServer [::ffff:192.168.1.72] HTTP Response is finished +1ms
  EventedHTTPServer [::ffff:192.168.1.72] HTTP request: /characteristics +31ms
  HAPServer [CC:21:3E:E4:DE:33] HAP Request: PUT /characteristics +0ms
  Accessory [Homebridge] Processing characteristic set: [{"aid":14,"iid":11,"ev":true}] +4ms
  Accessory [Homebridge] Registering Characteristic "Saturation" for events +1ms
  EventedHTTPServer [::ffff:192.168.1.72] HTTP Response is finished +1ms
  EventedHTTPServer [::ffff:192.168.1.72] HTTP request: /characteristics +10ms
  HAPServer [CC:21:3E:E4:DE:33] HAP Request: PUT /characteristics +0ms
  Accessory [Homebridge] Processing characteristic set: [{"aid":14,"iid":12,"ev":true}] +2ms
  Accessory [Homebridge] Registering Characteristic "Hue" for events +0ms
  EventedHTTPServer [::ffff:192.168.1.72] HTTP Response is finished +2ms
  EventedHTTPServer [::ffff:192.168.1.72] HTTP request: /characteristics +16ms
  HAPServer [CC:21:3E:E4:DE:33] HAP Request: PUT /characteristics +0ms
  Accessory [Homebridge] Processing characteristic set: [{"aid":14,"iid":11,"ev":true}] +2ms
  Accessory [Homebridge] Registering Characteristic "Saturation" for events +1ms
  EventedHTTPServer [::ffff:192.168.1.72] HTTP Response is finished +1ms
  EventedHTTPServer [::ffff:192.168.1.72] HTTP request: /characteristics +12ms
  HAPServer [CC:21:3E:E4:DE:33] HAP Request: PUT /characteristics +1ms
  Accessory [Homebridge] Processing characteristic set: [{"aid":14,"iid":12,"ev":true}] +2ms
  Accessory [Homebridge] Registering Characteristic "Hue" for events +1ms
  EventedHTTPServer [::ffff:192.168.1.72] HTTP Response is finished +1ms
  EventedHTTPServer [::ffff:192.168.1.72] HTTP request: /characteristics +13ms
  HAPServer [CC:21:3E:E4:DE:33] HAP Request: PUT /characteristics +1ms
  Accessory [Homebridge] Processing characteristic set: [{"aid":14,"iid":10,"ev":true}] +1ms
  Accessory [Homebridge] Registering Characteristic "Brightness" for events +1ms
  EventedHTTPServer [::ffff:192.168.1.72] HTTP Response is finished +1ms
  EventedHTTPServer [::ffff:192.168.1.72] HTTP request: /characteristics +12ms
  HAPServer [CC:21:3E:E4:DE:33] HAP Request: PUT /characteristics +1ms
  Accessory [Homebridge] Processing characteristic set: [{"aid":15,"iid":10,"ev":true}] +2ms
  Accessory [Homebridge] Registering Characteristic "Brightness" for events +0ms
  EventedHTTPServer [::ffff:192.168.1.72] HTTP Response is finished +2ms
  EventedHTTPServer [::ffff:192.168.1.72] HTTP request: /characteristics +22ms
  HAPServer [CC:21:3E:E4:DE:33] HAP Request: PUT /characteristics +1ms
  Accessory [Homebridge] Processing characteristic set: [{"aid":15,"iid":11,"ev":true}] +1ms
  Accessory [Homebridge] Registering Characteristic "Saturation" for events +0ms
  EventedHTTPServer [::ffff:192.168.1.72] HTTP Response is finished +1ms
  EventedHTTPServer [::ffff:192.168.1.72] HTTP request: /characteristics +13ms
  HAPServer [CC:21:3E:E4:DE:33] HAP Request: PUT /characteristics +0ms
  Accessory [Homebridge] Processing characteristic set: [{"aid":15,"iid":12,"ev":true}] +1ms
  Accessory [Homebridge] Registering Characteristic "Hue" for events +0ms
  EventedHTTPServer [::ffff:192.168.1.72] HTTP Response is finished +1ms
  EventedHTTPServer [::ffff:192.168.1.72] HTTP request: /characteristics +7ms
  HAPServer [CC:21:3E:E4:DE:33] HAP Request: PUT /characteristics +0ms
  Accessory [Homebridge] Processing characteristic set: [{"aid":15,"iid":12,"ev":true}] +1ms
  Accessory [Homebridge] Registering Characteristic "Hue" for events +1ms
  EventedHTTPServer [::ffff:192.168.1.72] HTTP Response is finished +0ms
  EventedHTTPServer [::ffff:192.168.1.72] HTTP request: /characteristics +12ms
  HAPServer [CC:21:3E:E4:DE:33] HAP Request: PUT /characteristics +1ms
  Accessory [Homebridge] Processing characteristic set: [{"aid":15,"iid":11,"ev":true}] +1ms
  Accessory [Homebridge] Registering Characteristic "Saturation" for events +1ms
  EventedHTTPServer [::ffff:192.168.1.72] HTTP Response is finished +0ms
  EventedHTTPServer [::ffff:192.168.1.72] HTTP request: /characteristics +19ms
  HAPServer [CC:21:3E:E4:DE:33] HAP Request: PUT /characteristics +1ms
  Accessory [Homebridge] Processing characteristic set: [{"aid":15,"iid":10,"ev":true}] +1ms
  Accessory [Homebridge] Registering Characteristic "Brightness" for events +0ms
  EventedHTTPServer [::ffff:192.168.1.72] HTTP Response is finished +5ms
  EventedHTTPServer [::ffff:192.168.1.72] HTTP request: /characteristics +7s
  HAPServer [CC:21:3E:E4:DE:33] HAP Request: PUT /characteristics +1ms
  Accessory [Homebridge] Processing characteristic set: [{"aid":16,"iid":10,"ev":true}] +2ms
  Accessory [Homebridge] Registering Characteristic "Brightness" for events +0ms
  EventedHTTPServer [::ffff:192.168.1.72] HTTP Response is finished +2ms
  EventedHTTPServer [::ffff:192.168.1.72] HTTP request: /characteristics +15ms
  HAPServer [CC:21:3E:E4:DE:33] HAP Request: PUT /characteristics +1ms
  Accessory [Homebridge] Processing characteristic set: [{"aid":16,"iid":9,"ev":true}] +1ms
  Accessory [Homebridge] Registering Characteristic "On" for events +2ms
  EventedHTTPServer [::ffff:192.168.1.72] HTTP Response is finished +2ms
  EventedHTTPServer [::ffff:192.168.1.72] HTTP request: /characteristics +17ms
  HAPServer [CC:21:3E:E4:DE:33] HAP Request: PUT /characteristics +1ms
  Accessory [Homebridge] Processing characteristic set: [{"aid":2,"iid":9,"ev":true}] +3ms
  Accessory [Homebridge] Registering Characteristic "On" for events +1ms
  EventedHTTPServer [::ffff:192.168.1.72] HTTP Response is finished +1ms
  EventedHTTPServer [::ffff:192.168.1.72] HTTP request: /characteristics?id=16.10 +4s
  HAPServer [CC:21:3E:E4:DE:33] HAP Request: GET /characteristics?id=16.10 +0ms
  Accessory [Homebridge] Getting value for Characteristic "Brightness" +5ms
[7/12/2016, 9:15:20 PM] [eDomoticz] Data Received for Living room main: 99
  Accessory [Homebridge] Got Characteristic "Brightness" value: 99 +43ms
  EventedHTTPServer [::ffff:192.168.1.72] HTTP Response is finished +3ms
  EventedHTTPServer [::ffff:192.168.1.72] HTTP request: /characteristics?id=16.9 +16ms
  HAPServer [CC:21:3E:E4:DE:33] HAP Request: GET /characteristics?id=16.9 +0ms
  Accessory [Homebridge] Getting value for Characteristic "On" +3ms
[7/12/2016, 9:15:20 PM] [eDomoticz] Data Received for Living room main: 1
  Accessory [Homebridge] Got Characteristic "On" value: 1 +19ms
  EventedHTTPServer [::ffff:192.168.1.72] HTTP Response is finished +2ms
  EventedHTTPServer [::ffff:192.168.1.72] HTTP request: /characteristics?id=2.9 +9ms
  HAPServer [CC:21:3E:E4:DE:33] HAP Request: GET /characteristics?id=2.9 +1ms
  Accessory [Homebridge] Getting value for Characteristic "On" +1ms
[7/12/2016, 9:15:20 PM] [eDomoticz] Data Received for Flexget: 1
  Accessory [Homebridge] Got Characteristic "On" value: 1 +10ms
  EventedHTTPServer [::ffff:192.168.1.72] HTTP Response is finished +2ms
  EventedHTTPServer [::ffff:192.168.1.72] HTTP request: /characteristics +23s
  HAPServer [CC:21:3E:E4:DE:33] HAP Request: PUT /characteristics +1ms
  Accessory [Homebridge] Processing characteristic set: [{"aid":15,"iid":10,"ev":false},{"aid":15,"iid":11,"ev":false},{"aid":15,"iid":12,"ev":false}] +3ms
  Accessory [Homebridge] Unregistering Characteristic "Brightness" for events +1ms
  Accessory [Homebridge] Unregistering Characteristic "Saturation" for events +1ms
  Accessory [Homebridge] Unregistering Characteristic "Hue" for events +1ms
  EventedHTTPServer [::ffff:192.168.1.72] HTTP Response is finished +1ms
  EventedHTTPServer [::ffff:192.168.1.72] HTTP request: /characteristics +13ms
  HAPServer [CC:21:3E:E4:DE:33] HAP Request: PUT /characteristics +0ms
  Accessory [Homebridge] Processing characteristic set: [{"aid":14,"iid":10,"ev":false},{"aid":14,"iid":11,"ev":false},{"aid":14,"iid":12,"ev":false}] +3ms
  Accessory [Homebridge] Unregistering Characteristic "Brightness" for events +2ms
  Accessory [Homebridge] Unregistering Characteristic "Saturation" for events +3ms
  Accessory [Homebridge] Unregistering Characteristic "Hue" for events +1ms
  EventedHTTPServer [::ffff:192.168.1.72] HTTP Response is finished +1ms
  EventedHTTPServer [::ffff:192.168.1.72] HTTP request: /characteristics +96ms
  HAPServer [CC:21:3E:E4:DE:33] HAP Request: PUT /characteristics +0ms
  Accessory [Homebridge] Processing characteristic set: [{"aid":2,"iid":9,"ev":false}] +3ms
  Accessory [Homebridge] Unregistering Characteristic "On" for events +1ms
  EventedHTTPServer [::ffff:192.168.1.72] HTTP Response is finished +1ms
  EventedHTTPServer [::ffff:192.168.1.72] HTTP request: /characteristics +26ms
  HAPServer [CC:21:3E:E4:DE:33] HAP Request: PUT /characteristics +1ms
  Accessory [Homebridge] Processing characteristic set: [{"aid":16,"iid":9,"ev":false},{"aid":16,"iid":10,"ev":false}] +1ms
  Accessory [Homebridge] Unregistering Characteristic "On" for events +1ms
  Accessory [Homebridge] Unregistering Characteristic "Brightness" for events +4ms
  EventedHTTPServer [::ffff:192.168.1.72] HTTP Response is finished +1ms

Re: eDomoticz Homebridge-Plugin

Posted: Wednesday 13 July 2016 17:47
by Marci
That's not the JSON output from Domoticz... that's the Homebridge run-log.

See https://www.domoticz.com/wiki/Domoticz_ ... fic_device

Re: eDomoticz Homebridge-Plugin

Posted: Wednesday 13 July 2016 23:52
by NewFolk
Could you help me to find JSON log?

I see only add JSON log to domoticz by link above.

Re: eDomoticz Homebridge-Plugin

Posted: Thursday 14 July 2016 0:15
by Marci
Retrieve status of specific device...

You can get the status of a specific device with:
http://domoticzip:port/json.htm?type=devices&rid=IDX

IDX = id of your device (This number can be found in the devices tab in the column "IDX")

Re: eDomoticz Homebridge-Plugin

Posted: Tuesday 19 July 2016 15:38
by RemcoSmit
Hi Marci,

I just performed the steps you described in the start of this post:

Code: Select all

sudo apt-get update && sudo apt-get upgrade

Code: Select all

sudo apt-get install libavahi-compat-libdnssd-dev

Code: Select all

sudo npm install -g homebridge --unsafe-perm
I skipped forever install as I ruined my pi image once before, so I don't want it running always just yet.

Code: Select all

sudo npm install -g homebridge-edomoticz

Code: Select all

mkdir ~/.homebridge && pico ~/.homebridge/config.json
mkdir gave an error, something like folder already exist.
I continued with editing the config.json, that looked ok as it was (no roomID, no accessories, default IP, etc).
If all went well you should now see a device entitled “Homebridge” to pair with from your chosen homekit app, which contains all your accessories! Done!
All did not go well, I assume :-)

When I type

Code: Select all

pi@raspberrypi:~$ homebridge
I see this:

Code: Select all

pi@raspberrypi:~$ homebridge
*** WARNING *** The program 'nodejs' uses the Apple Bonjour compatibility layer of Avahi.
*** WARNING *** Please fix your application to use the native API of Avahi!
*** WARNING *** For more information see <http://0pointer.de/avahi-compat?s=libdns_sd&e=nodejs>
*** WARNING *** The program 'nodejs' called 'DNSServiceRegister()' which is not supported (or only supported partially) in the Apple Bonjour compatibility layer of Avahi.
*** WARNING *** Please fix your application to use the native API of Avahi!
*** WARNING *** For more information see <http://0pointer.de/avahi-compat?s=libdns_sd&e=nodejs&f=DNSServiceRegister>
[7/19/2016, 3:30:06 PM] Loaded plugin: homebridge-edomoticz
[7/19/2016, 3:30:06 PM] Registering accessory 'homebridge-edomoticz.eDomoticz'
[7/19/2016, 3:30:06 PM] Registering platform 'homebridge-edomoticz.eDomoticz'
[7/19/2016, 3:30:06 PM] ---
[7/19/2016, 3:30:06 PM] Loaded config.json with 0 accessories and 1 platforms.
[7/19/2016, 3:30:06 PM] ---
[7/19/2016, 3:30:06 PM] Loading 1 platforms...
[7/19/2016, 3:30:06 PM] [Domoticz] Initializing eDomoticz platform...
[7/19/2016, 3:30:06 PM] [Domoticz] Fetching Domoticz lights and switches...
[7/19/2016, 3:30:06 PM] Loading 0 accessories...
[b][7/19/2016, 3:30:06 PM] [Domoticz] There was a problem connecting to Domoticz.
[/b]pi@raspberrypi:~$ 
Also, the EVE app sees nothing. It keeps on searching for accessories.

Any suggestions?