homebridge-edomoticz Plugin

Moderator: leecollings

simon_rb
Posts: 612
Joined: Wednesday 07 August 2013 19:09
Target OS: -
Domoticz version:
Location: UK
Contact:

Re: homebridge-edomoticz Plugin

Post by simon_rb »

I am up to my 100 devices exposed to HomeKit using eDomoticz, I assume I can run a new bridge and run two eDomoticz on the same raspberry pi. Do I just add another instance within the config file? Didn't want to chance it without asking just in case I break it..

Cheerrs
theo69
Posts: 60
Joined: Sunday 04 June 2017 12:57
Target OS: Raspberry Pi / ODroid
Domoticz version: la. beta
Location: World
Contact:

Re: homebridge-edomoticz Plugin

Post by theo69 »

After reboot my iphone does not find homebridge (homebridge is running without error. When reinstalling homebridge-edomotics I am getting:

Code: Select all

npm WARN deprecated [email protected]: Use uuid module instead
npm WARN deprecated [email protected]: ReDoS vulnerability parsing Set-Cookie https://nodesecurity.io/advisories/130
Love my Xiaomi Gateway in connection with homebridge and domoticz on my PI3
Xiaomi Gateway Domoticz Wiki
frizby66
Posts: 33
Joined: Friday 13 November 2015 17:36
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: homebridge-edomoticz Plugin

Post by frizby66 »

Anyone having issues with Domoticz / eDomotics / Homebridge use with Nest?

If I make changes within Domoticz to the temp then there are no issues. If I make the change within Homekit I get multiple inputs showing in the log and Domoticz becomes very slow for a period of time. Have other devices on Homekit via eDomoticz and no issues with them (light switches).

Code: Select all

2017-06-09 09:35:43.419 (Heating) Thermostat (Home Heating Set)
2017-06-09 09:35:43.438 (Heating) Temp + Humidity (Home Temperature)
2017-06-09 09:35:48.613 Sending SetPoint to device....
2017-06-09 09:36:03.448 (Heating) Thermostat (Home Heating Set)
2017-06-09 09:36:03.469 (Heating) Temp + Humidity (Home Temperature)
2017-06-09 09:36:03.565 Sending SetPoint to device....
2017-06-09 09:36:23.449 (Heating) Thermostat (Home Heating Set)
2017-06-09 09:36:23.466 (Heating) Temp + Humidity (Home Temperature)
2017-06-09 09:36:23.479 (Heating) Lighting 2 (Home Hallway HeatingOn)
2017-06-09 09:36:43.467 (Heating) Thermostat (Home Heating Set)
2017-06-09 09:36:43.485 (Heating) Temp + Humidity (Home Temperature)
2017-06-09 09:37:13.984 (Heating) Thermostat (Home Heating Set)
2017-06-09 09:37:14.000 (Heating) Temp + Humidity (Home Temperature)
2017-06-09 09:37:44.505 (Heating) Thermostat (Home Heating Set)
2017-06-09 09:37:44.521 (Heating) Temp + Humidity (Home Temperature)
2017-06-09 09:38:15.067 (Heating) Thermostat (Home Heating Set)
2017-06-09 09:38:15.084 (Heating) Temp + Humidity (Home Temperature)
2017-06-09 09:38:45.590 (Heating) Thermostat (Home Heating Set)
2017-06-09 09:38:45.602 (Heating) Temp + Humidity (Home Temperature)
2017-06-09 09:39:16.124 (Heating) Thermostat (Home Heating Set)
2017-06-09 09:39:16.142 (Heating) Temp + Humidity (Home Temperature)
2017-06-09 09:39:46.648 (Heating) Thermostat (Home Heating Set)
2017-06-09 09:39:46.664 (Heating) Temp + Humidity (Home Temperature)
2017-06-09 09:40:22.652 (Heating) Thermostat (Home Heating Set)
2017-06-09 09:40:22.666 (Heating) Temp + Humidity (Home Temperature)
2017-06-09 09:40:53.186 (Heating) Thermostat (Home Heating Set)
2017-06-09 09:40:53.202 (Heating) Temp + Humidity (Home Temperature)
--------------------
Raspberry Pi2, RTX433e USB, Philips Hue, Nest, LightwaveRF.
frizby66
Posts: 33
Joined: Friday 13 November 2015 17:36
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: homebridge-edomoticz Plugin

Post by frizby66 »

theo69 wrote:After reboot my iphone does not find homebridge (homebridge is running without error. When reinstalling homebridge-edomotics I am getting:

Code: Select all

npm WARN deprecated [email protected]: Use uuid module instead
npm WARN deprecated [email protected]: ReDoS vulnerability parsing Set-Cookie https://nodesecurity.io/advisories/130
From what I see it looks like a simple warning to see some of the npm stuff has been updated.... might be time to backup you data and then update your system.
--------------------
Raspberry Pi2, RTX433e USB, Philips Hue, Nest, LightwaveRF.
matv
Posts: 8
Joined: Sunday 08 January 2017 18:26
Target OS: Raspberry Pi / ODroid
Domoticz version: 3.5877
Location: EU
Contact:

Re: homebridge-edomoticz Plugin

Post by matv »

Since I could not find anything on this forum about this new announcement from Apple I decided to share this with you.
During the “What’s new in HomeKit” session developers were told that HomeKit smart devices—that had previously had to go through extensive testing and include a special cryptographic chip for authentication — can now use software based authentication, and be self-certified. You can in fact now even build your HomeKit devices out of an Arduino, or a Raspberry Pi.

Of course you could sort of do that before using something called HomeBridge—a lightweight NodeJS server you can run on your home network that emulates the iOS HomeKit API—as it’s pretty easy to get HomeBridge running on the Raspberry Pi.

What’s different now is that, amongst other things, you don’t have to fear a DMCA take down notice from Apple.
But also that your microcontroller-based HomeKit device can talk directly to your phone, without going through a bridge.
source: https://blog.hackster.io/why-apples-hom ... 3c3d7fdbc8

I'm abroad without my Pi for a while but please let me know your findings in case you are planning to try this out! :)
theolsen
Posts: 46
Joined: Wednesday 31 July 2013 11:15
Target OS: -
Domoticz version:
Contact:

Re: homebridge-edomoticz Plugin

Post by theolsen »

Hi all,
I am having trouble with scenes in the Home and Eve apps.

If I run a scene for example "Good Night" which in turn throws a switch in Domoticz, that is fine but if I try and run it again it does not respond. The only way to make it respond is to go into the Home app and toggle the scene to "Off".

Has anyone seen this behaviour?

TIA
Onkytonk
Posts: 14
Joined: Saturday 24 June 2017 2:47
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: homebridge-edomoticz Plugin

Post by Onkytonk »

Hi,
I've added a few Mi-Lights to my domoticz. These are rgb+cct bulbs. I also have a few rgb strip controllers.

These appear as the same type of switch in domoticz, but when I add them to homebridge, I can't change the colour/temperature of the rgb+cct bulb but it's available for the rgb strips (through HomeKit).

Any idea why HomeKit/homebridge isn't giving me that option with the rgb+cct bulbs?

Thanks.
marcotrumpet
Posts: 102
Joined: Saturday 18 February 2017 8:21
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: homebridge-edomoticz Plugin

Post by marcotrumpet »

Onkytonk wrote:Hi,
I've added a few Mi-Lights to my domoticz. These are rgb+cct bulbs. I also have a few rgb strip controllers.

These appear as the same type of switch in domoticz, but when I add them to homebridge, I can't change the colour/temperature of the rgb+cct bulb but it's available for the rgb strips (through HomeKit).

Any idea why HomeKit/homebridge isn't giving me that option with the rgb+cct bulbs?

Thanks.
I've the same problem with mi-light rgbww bulbs and no idea..


Inviato dal mio iPhone utilizzando Tapatalk
Onkytonk
Posts: 14
Joined: Saturday 24 June 2017 2:47
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: homebridge-edomoticz Plugin

Post by Onkytonk »

theolsen wrote:Hi all,
I am having trouble with scenes in the Home and Eve apps.

If I run a scene for example "Good Night" which in turn throws a switch in Domoticz, that is fine but if I try and run it again it does not respond. The only way to make it respond is to go into the Home app and toggle the scene to "Off".

Has anyone seen this behaviour?

TIA
I had the same problem.
Basically homebride doesn't recognised Domoticz Scenes. So obviously the workaround is to create a dummy switch that triggers the scene. So because these are switches, they either stay on or off. Homekit doesn't work with push on switches either. The way to get it to function, is to set an off delay on the switch. That way, afer you use it to trigger the scene, it will turn itself off shortly afterwards. Allowing you to reuse it later.
theolsen
Posts: 46
Joined: Wednesday 31 July 2013 11:15
Target OS: -
Domoticz version:
Contact:

Re: homebridge-edomoticz Plugin

Post by theolsen »

I had the same problem.
Basically homebride doesn't recognised Domoticz Scenes. So obviously the workaround is to create a dummy switch that triggers the scene. So because these are switches, they either stay on or off. Homekit doesn't work with push on switches either. The way to get it to function, is to set an off delay on the switch. That way, afer you use it to trigger the scene, it will turn itself off shortly afterwards. Allowing you to reuse it later.
Thanks for the reply, my problem is slightly different.

I do indeed have dummy switches so that homebridge can switch those and then Domoticz will run the scene. Let me clarify:

I have a door lock in Domoticz for example. I have a dummy switch called 'Door' that when turned on will unlock the door and then the switch turns off.
I create a scene in the Home app called 'Unlock the front door' which turns the Door switch on and yes, the door unlocks correctly. But when I issue the Unlock command to Siri for a second time nothing happens because in the Home app (or Elgato Eve app) the scene is already on. I think it happened with an iOS update as it used to be fine. i just can't remember when exactly it stopped working.
The problem appears to be in the Home app as if you look at the scenes section in there you can click a scene and it switches on and you can click it again and it switches off.

Hope that makes sense.
edwin1234
Posts: 287
Joined: Sunday 09 October 2016 20:20
Target OS: Raspberry Pi / ODroid
Domoticz version: 2021.1
Location: Nederland
Contact:

Re: homebridge-edomoticz Plugin

Post by edwin1234 »

My switches stopped working with homebridge,
The sensors and other stuff are ok
The switches are working in domoticz
How to solve this?

Thanks
Edwin
friso
Posts: 3
Joined: Sunday 28 June 2015 12:58
Target OS: Raspberry Pi / ODroid
Domoticz version: 3.5877
Location: Leiden, The Netherlands
Contact:

Re: homebridge-edomoticz Plugin

Post by friso »

Just another big thank you for all the work: following your clear instructions (made extra easy by providing all the commands) I managed to get HomeKit connected to my Homebridge. Almost magic when all my Domoticz devices are showing up in the Home app!

Using a 2b booting from a 16Gb usb stick.

Thanks!
jascai
Posts: 1
Joined: Wednesday 12 July 2017 5:13
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: homebridge-edomoticz Plugin

Post by jascai »

Dear all:

I'm trying to add homebridge-edomoticz to my domoticz server following the wiki tutorial. But when I finished it and launch the homebridge, it got an error as the following and the homebridge cannot work.
*** 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=libd ns_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=libd ns_sd&e=nodejs&f=DNSServiceRegister>
[2017-7-12 11:17:14] Loaded plugin: homebridge-edomoticz
[2017-7-12 11:17:14] Registering accessory 'homebridge-edomoticz.eDomoticz'
[2017-7-12 11:17:14] Registering platform 'homebridge-edomoticz.eDomoticz'
[2017-7-12 11:17:14] ---
[2017-7-12 11:17:14] Loaded config.json with 0 accessories and 1 platforms.
[2017-7-12 11:17:14] ---
[2017-7-12 11:17:14] Loading 1 platforms...
[2017-7-12 11:17:14] [eDomoticz] Initializing eDomoticz platform...
[2017-7-12 11:17:14] Loading 0 accessories...
[2017-7-12 11:17:14] [eDomoticz] Initializing platform accessory 'A'...
[2017-7-12 11:17:14] [eDomoticz] Initializing platform accessory 'B'...
[2017-7-12 11:17:14] [eDomoticz] Initializing platform accessory 'C'...
Scan this code with your HomeKit App on your iOS device to pair with Homebridge:

┌────────────┐
│ 876-54-321 │
└────────────┘

events.js:163
throw er; // Unhandled 'error' event
^

Error: listen EADDRINUSE :::51826
at Object.exports._errnoException (util.js:1050:11)
at exports._exceptionWithHostPort (util.js:1073:20)
at Server.setupListenHandle [as _listen2] (net.js:1259:14)
at listenInCluster (net.js:1307:12)
at Server.listen (net.js:1406:7)
at EventedHTTPServer.listen (/usr/lib/node_modules/homebridge/node_modules/h ap-nodejs/lib/util/eventedhttp.js:60:19)
at HAPServer.listen (/usr/lib/node_modules/homebridge/node_modules/hap-nodej s/lib/HAPServer.js:158:20)
at Bridge.Accessory.publish (/usr/lib/node_modules/homebridge/node_modules/h ap-nodejs/lib/Accessory.js:486:16)
at Server._publish (/usr/lib/node_modules/homebridge/lib/server.js:114:16)
at Server.<anonymous> (/usr/lib/node_modules/homebridge/lib/server.js:372:14
How to solve this problem?

Many thanks!
Jas
Guiggess
Posts: 6
Joined: Tuesday 17 January 2017 20:50
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: homebridge-edomoticz Plugin

Post by Guiggess »

Hello there,
I just finished the installation of Homebridge and eDomoticz plugin. Everything works fine so far. The only thing is that all of my Somfy blinds are shown up as switches. Not a big deal, but still annoying.
I just followed the official tutorial and installed node.js 8
Also, the actual "blind switches" are inverted. I need to ask "Open..." to actually close the blinds...
Thanks a lot
Artic1980
Posts: 23
Joined: Monday 25 April 2016 17:37
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: homebridge-edomoticz Plugin

Post by Artic1980 »

Inviato dal mio iPhone utilizzando Tapatalk
martijnm
Posts: 26
Joined: Thursday 04 February 2016 13:06
Target OS: Raspberry Pi / ODroid
Domoticz version: 3.530
Location: Emmen, Drenthe
Contact:

Re: homebridge-edomoticz Plugin

Post by martijnm »

After installing the 2.0.0 version of Homebridge-eDomoticz I get this error message. I've cleaned the persist and accessories folder.

I have also tried to load an empty room in config.json without any Domoticz accessories configured, but still get the same message.

Code: Select all

Error: homebridge-edomoticz - eDomoticz attempt to unregister an accessory that isn't PlatformAccessory!
    at API.unregisterPlatformAccessories (/usr/local/lib/node_modules/homebridge/lib/api.js:170:13)
    at Object.configureAccessory (/usr/local/lib/node_modules/homebridge-edomoticz/index.js:176:16)
    at Server._configCachedPlatformAccessories (/usr/local/lib/node_modules/homebridge/lib/server.js:342:24)
    at Server.run (/usr/local/lib/node_modules/homebridge/lib/server.js:83:8)
    at module.exports (/usr/local/lib/node_modules/homebridge/lib/cli.js:40:10)
    at Object.<anonymous> (/usr/local/lib/node_modules/homebridge/bin/homebridge:17:22)
    at Module._compile (module.js:556:32)
    at Object.Module._extensions..js (module.js:565:10)
    at Module.load (module.js:473:32)
    at tryModuleLoad (module.js:432:12)
    at Function.Module._load (module.js:424:3)
    at Module.runMain (module.js:590:10)
    at run (bootstrap_node.js:394:7)
    at startup (bootstrap_node.js:149:9)
    at bootstrap_node.js:509:3
Note: I downgraded to version 1.0.15, which is working fine.
mcmikev
Posts: 146
Joined: Tuesday 26 May 2015 8:11
Target OS: Raspberry Pi / ODroid
Domoticz version: beta
Location: right here
Contact:

Re: homebridge-edomoticz Plugin

Post by mcmikev »

I updated totday to latest version but after a reboot there are no accessoires loaded. Went back to old version and works. Was version 2.0 I think
martijnm
Posts: 26
Joined: Thursday 04 February 2016 13:06
Target OS: Raspberry Pi / ODroid
Domoticz version: 3.530
Location: Emmen, Drenthe
Contact:

Re: homebridge-edomoticz Plugin

Post by martijnm »

Have tested 2.0.3 as well. Now Homebridge is running as usual, but devices are not working in Home.app.

Have (again) cleaned the persist and accessories folder and removed my house in Home.app. After re-adding Homebridge, all devices are unresponsive.

Image
mcmikev
Posts: 146
Joined: Tuesday 26 May 2015 8:11
Target OS: Raspberry Pi / ODroid
Domoticz version: beta
Location: right here
Contact:

Re: homebridge-edomoticz Plugin

Post by mcmikev »

Just upgraded to 2.0.4 and still no domoticz accesoires are loaded.

Code: Select all

[7/21/2017, 1:21:40 PM] Loaded plugin: homebridge-edomoticz
[7/21/2017, 1:21:40 PM] Registering platform 'homebridge-edomoticz.eDomoticz'
[7/21/2017, 1:21:40 PM] ---
[7/21/2017, 1:21:40 PM] Loaded plugin: homebridge-harmonyhub
[7/21/2017, 1:21:42 PM] Registering platform 'homebridge-harmonyhub.HarmonyHub'
[7/21/2017, 1:21:42 PM] ---
[7/21/2017, 1:21:42 PM] Loaded config.json with 0 accessories and 2 platforms.
[7/21/2017, 1:21:42 PM] ---
[7/21/2017, 1:21:42 PM] Loading 2 platforms...
[7/21/2017, 1:21:42 PM] [eDomoticz] Initializing eDomoticz platform...
[7/21/2017, 1:21:42 PM] [Harmony Hub] Initializing HarmonyHub platform...
[7/21/2017, 1:21:42 PM] Loading 0 accessories...
Scan this code with your HomeKit App on your iOS device to pair with Homebridge:
martijnm
Posts: 26
Joined: Thursday 04 February 2016 13:06
Target OS: Raspberry Pi / ODroid
Domoticz version: 3.530
Location: Emmen, Drenthe
Contact:

Re: homebridge-edomoticz Plugin

Post by martijnm »

Just upgraded to version 2.0.6, all things are back to normal. I did have to remove the persist and accessories folder contents. Also I have removed my house and added it as a new house in Home.app.

Image

Thanks guys!
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest