
homebridge-edomoticz Plugin
Moderator: leecollings
- TheRamon
- Posts: 126
- Joined: Tuesday 12 July 2016 11:32
- Target OS: Raspberry Pi / ODroid
- Domoticz version: BETA
- Location: NL/DE
- Contact:
Re: eDomoticz Homebridge-Plugin
Coolio! Any thoughts on when to release this update? I mean we could always add more sensors with time. 

- Marci
- Posts: 531
- Joined: Friday 22 January 2016 18:00
- Target OS: Raspberry Pi / ODroid
- Domoticz version: 3.8153
- Location: Wakefield, West Yorkshire UK
- Contact:
Re: eDomoticz Homebridge-Plugin
At the moment the issue is that unsupported switch types get forced into being an On/Off switch on the first MQTT update of that device - essentially we just need to make sure that every switch type possible is supported. Sensors are covered in the empty 'else' so shouldn't cause any problems (for now).
I'll check it all out tonight when I get home and report back...
I'll check it all out tonight when I get home and report back...
Extended Domoticz homebridge-plugin for latest Homebridge - adds temp/humidity/pressure sensors, power consumption sensors, DarkSkies virtual weather station support, YouLess Meter support, general % usage support & switch/lamp status checking!
- TheRamon
- Posts: 126
- Joined: Tuesday 12 July 2016 11:32
- Target OS: Raspberry Pi / ODroid
- Domoticz version: BETA
- Location: NL/DE
- Contact:
Re: eDomoticz Homebridge-Plugin
Whoops! Wanted to look into that issue. Completely forgot. It is because I had changed the if condition of 'getServices'. With the old statement the 'Fan' type switches would never show up as fan, but as a Switch. Not because of the word "Fan" not appearing in the name, but because the default of 'Sensor' (else clause) is also a 'Switch'.
Details in GitHub.
I have fixed the issue and am creating a pull request now.
Details in GitHub.
I have fixed the issue and am creating a pull request now.
- Marci
- Posts: 531
- Joined: Friday 22 January 2016 18:00
- Target OS: Raspberry Pi / ODroid
- Domoticz version: 3.8153
- Location: Wakefield, West Yorkshire UK
- Contact:
Re: eDomoticz Homebridge-Plugin
There were still some devices being broken - have just applied some ugly workarounds for now - feel free to improve if you’re able, but, that all seems to be working now without destroying any of my plethora of sensors
Excellent work fella! As it stands, we’re definitely at ReleaseCandidate stage... https://github.com/PatchworkBoy/homebri ... /issues/29
EDIT: just noticed, the refactoring has improved/reduced memory usage also... *applause*
Will give it some thorough testing between now and the weekend and see if anything unexpected crops up... then we can think about Release!
For reference, just so you’ve an idea of my “test” setup, here’s a full sweep of all accessories from Homebridge:

Excellent work fella! As it stands, we’re definitely at ReleaseCandidate stage... https://github.com/PatchworkBoy/homebri ... /issues/29
EDIT: just noticed, the refactoring has improved/reduced memory usage also... *applause*
Will give it some thorough testing between now and the weekend and see if anything unexpected crops up... then we can think about Release!

For reference, just so you’ve an idea of my “test” setup, here’s a full sweep of all accessories from Homebridge:
- Spoiler: show
- Attachments
-
- devices.txt
- (120.17 KiB) Downloaded 72 times
Extended Domoticz homebridge-plugin for latest Homebridge - adds temp/humidity/pressure sensors, power consumption sensors, DarkSkies virtual weather station support, YouLess Meter support, general % usage support & switch/lamp status checking!
- TheRamon
- Posts: 126
- Joined: Tuesday 12 July 2016 11:32
- Target OS: Raspberry Pi / ODroid
- Domoticz version: BETA
- Location: NL/DE
- Contact:
Re: eDomoticz Homebridge-Plugin
My goodie, that's a vast list you have there.
Good to hear memory usage has improved. We should probably remove the logging of MQTT messages too, easy win there.
So basically, anyone that wants to help testing this is free to try:
Clone the repo in your node_modules directory that contains the plugin. (usually /usr/lib/node_modules or /usr/local/lib/node_modules/)

Good to hear memory usage has improved. We should probably remove the logging of MQTT messages too, easy win there.
So basically, anyone that wants to help testing this is free to try:
Clone the repo in your node_modules directory that contains the plugin. (usually /usr/lib/node_modules or /usr/local/lib/node_modules/)
Code: Select all
$ git clone -b mqtt-integration https://github.com/PatchworkBoy/homebridge-eDomoticz.git
- Marci
- Posts: 531
- Joined: Friday 22 January 2016 18:00
- Target OS: Raspberry Pi / ODroid
- Domoticz version: 3.8153
- Location: Wakefield, West Yorkshire UK
- Contact:
Re: eDomoticz Homebridge-Plugin
(and refer to last post at https://github.com/PatchworkBoy/homebri ... /issues/29 for setting up MQTT in Domoticz etc)
Extended Domoticz homebridge-plugin for latest Homebridge - adds temp/humidity/pressure sensors, power consumption sensors, DarkSkies virtual weather station support, YouLess Meter support, general % usage support & switch/lamp status checking!
- deejc
- Posts: 168
- Joined: Tuesday 22 September 2015 18:50
- Target OS: Raspberry Pi / ODroid
- Domoticz version: 3.5641
- Location: UK
- Contact:
Re: eDomoticz Homebridge-Plugin
followed all the instructions and i get below error and my Home app doesn't update in real time
i notice that the git clone command has a capital D in eDomoticz but my usual plugin node folder is all lower case
Code: Select all
8/10/2016, 8:38:58 PM] ====================
[8/10/2016, 8:38:58 PM] ERROR LOADING PLUGIN homebridge-eDomoticz:
[8/10/2016, 8:38:58 PM] Error: Cannot find module 'request'
at Function.Module._resolveFilename (module.js:440:15)
at Function.Module._load (module.js:388:25)
at Module.require (module.js:468:17)
at require (internal/module.js:20:19)
at Object.<anonymous> (/usr/local/lib/node_modules/homebridge-eDomoticz/index.js:43:15)
at Module._compile (module.js:541:32)
at Object.Module._extensions..js (module.js:550:10)
at Module.load (module.js:458:32)
at tryModuleLoad (module.js:417:12)
at Function.Module._load (module.js:409:3)
[8/10/2016, 8:38:58 PM] ====================
[8/10/2016, 8:39:00 PM] Loaded plugin: homebridge-edomoticz
Domoticz 3.5641 on RPI (Raspbian GNU/Linux 8)
- Marci
- Posts: 531
- Joined: Friday 22 January 2016 18:00
- Target OS: Raspberry Pi / ODroid
- Domoticz version: 3.8153
- Location: Wakefield, West Yorkshire UK
- Contact:
Re: eDomoticz Homebridge-Plugin
2 options...
Copy contents of new folder over old folder, delete new folder... assuming you're in your node_modules folder:
OR...
Remove old folder from your node_modules folder:
Then navigate into your homebridge-eDomoticz folder and run...
...and it should then pull in the dependencies. Once done, restart homebridge.
Copy contents of new folder over old folder, delete new folder... assuming you're in your node_modules folder:
Code: Select all
sudo cp -R homebridge-eDomoticz/* homebridge-edomoticz/
sudo rm -rf homebridge-eDomoticz
Remove old folder from your node_modules folder:
Code: Select all
sudo rm -rf homebridge-edomoticz/
Code: Select all
sudo npm install
...and it should then pull in the dependencies. Once done, restart homebridge.
Last edited by Marci on Wednesday 10 August 2016 21:52, edited 2 times in total.
Extended Domoticz homebridge-plugin for latest Homebridge - adds temp/humidity/pressure sensors, power consumption sensors, DarkSkies virtual weather station support, YouLess Meter support, general % usage support & switch/lamp status checking!
- deejc
- Posts: 168
- Joined: Tuesday 22 September 2015 18:50
- Target OS: Raspberry Pi / ODroid
- Domoticz version: 3.5641
- Location: UK
- Contact:
Re: eDomoticz Homebridge-Plugin
won't start at all now.
Code: Select all
8/10/2016, 8:50:28 PM] Loaded plugin: homebridge-eDomoticz
[8/10/2016, 8:50:28 PM] Registering accessory 'homebridge-edomoticz.eDomoticz'
[8/10/2016, 8:50:28 PM] Registering platform 'homebridge-edomoticz.eDomoticz'
[8/10/2016, 8:50:28 PM] ---
[8/10/2016, 8:50:30 PM] Loaded plugin: homebridge-edomoticz
/usr/local/lib/node_modules/homebridge/lib/api.js:76
throw new Error("Attempting to register an accessory '" + fullName + "' which has already been registered!");
^
Error: Attempting to register an accessory 'homebridge-edomoticz.eDomoticz' which has already been registered!
at API.registerAccessory (/usr/local/lib/node_modules/homebridge/lib/api.js:76:11)
at Plugin.module.exports [as initializer] (/usr/local/lib/node_modules/homebridge-edomoticz/index.js:67:16)
at Server.<anonymous> (/usr/local/lib/node_modules/homebridge/lib/server.js:130:14)
at Array.forEach (native)
at Server._loadPlugins (/usr/local/lib/node_modules/homebridge/lib/server.js:108:22)
at new Server (/usr/local/lib/node_modules/homebridge/lib/server.js:43:24)
at module.exports (/usr/local/lib/node_modules/homebridge/lib/cli.js:26:16)
at Object.<anonymous> (/usr/local/lib/node_modules/homebridge/bin/homebridge:17:22)
at Module._compile (module.js:541:32)
at Object.Module._extensions..js (module.js:550:10)
error: Forever detected script exited with code: 1
Domoticz 3.5641 on RPI (Raspbian GNU/Linux 8)
- Marci
- Posts: 531
- Joined: Friday 22 January 2016 18:00
- Target OS: Raspberry Pi / ODroid
- Domoticz version: 3.8153
- Location: Wakefield, West Yorkshire UK
- Contact:
Re: eDomoticz Homebridge-Plugin
See edits above - you still have 2x plugin folders, therefore all devices duplicate, which breaks the unique-device-name rule.
Extended Domoticz homebridge-plugin for latest Homebridge - adds temp/humidity/pressure sensors, power consumption sensors, DarkSkies virtual weather station support, YouLess Meter support, general % usage support & switch/lamp status checking!
- deejc
- Posts: 168
- Joined: Tuesday 22 September 2015 18:50
- Target OS: Raspberry Pi / ODroid
- Domoticz version: 3.5641
- Location: UK
- Contact:
Re: eDomoticz Homebridge-Plugin
got it, will remove it
Domoticz 3.5641 on RPI (Raspbian GNU/Linux 8)
Re: eDomoticz Homebridge-Plugin
I was on travel...Marci wrote: Do the following:
Code: Select all
cd / sudo find ./ -name homebridge-edomoticz
...and copy/paste the output.
Here it is
./root/.npm/registry.npmjs.org/homebridge-edomoticz
./root/.npm/homebridge-edomoticz
./usr/local/lib/node_modules/homebridge-edomoticz
- Marci
- Posts: 531
- Joined: Friday 22 January 2016 18:00
- Target OS: Raspberry Pi / ODroid
- Domoticz version: 3.8153
- Location: Wakefield, West Yorkshire UK
- Contact:
Re: eDomoticz Homebridge-Plugin
Once it hits Release and I package it into npmjs it'll be back to 'usual' all-lowercase name.deejc wrote:got it, will remove it
Extended Domoticz homebridge-plugin for latest Homebridge - adds temp/humidity/pressure sensors, power consumption sensors, DarkSkies virtual weather station support, YouLess Meter support, general % usage support & switch/lamp status checking!
- Marci
- Posts: 531
- Joined: Friday 22 January 2016 18:00
- Target OS: Raspberry Pi / ODroid
- Domoticz version: 3.8153
- Location: Wakefield, West Yorkshire UK
- Contact:
Re: eDomoticz Homebridge-Plugin
Did you delete contents of persist folder, or just the accessories folder? Need to empty both.chrispazz wrote:Also deleting accessory files and repairing is doing the same result...
Could it be the new version still not working good?
Ty
Extended Domoticz homebridge-plugin for latest Homebridge - adds temp/humidity/pressure sensors, power consumption sensors, DarkSkies virtual weather station support, YouLess Meter support, general % usage support & switch/lamp status checking!
- deejc
- Posts: 168
- Joined: Tuesday 22 September 2015 18:50
- Target OS: Raspberry Pi / ODroid
- Domoticz version: 3.5641
- Location: UK
- Contact:
Re: eDomoticz Homebridge-Plugin
ok everything is back up and running, although I'm not seeing the mqtt messages in the plugin log, i am running domo in docker so i reconfigured the docker to open port 1883 etc
Domoticz 3.5641 on RPI (Raspbian GNU/Linux 8)
Re: eDomoticz Homebridge-Plugin
I just did both again but the result is again the same.Marci wrote:Did you delete contents of persist folder, or just the accessories folder? Need to empty both.chrispazz wrote:Also deleting accessory files and repairing is doing the same result...
Could it be the new version still not working good?
Ty
Is there any way to debug this?
- Marci
- Posts: 531
- Joined: Friday 22 January 2016 18:00
- Target OS: Raspberry Pi / ODroid
- Domoticz version: 3.8153
- Location: Wakefield, West Yorkshire UK
- Contact:
Re: eDomoticz Homebridge-Plugin
Check with an MQTT iPhone app or other MQTT client to make sure Domoticz is sending output. Presume you've added the hardware MQTT over LAN device in Domoticz?deejc wrote:ok everything is back up and running, although I'm not seeing the mqtt messages in the plugin log, i am running domo in docker so i reconfigured the docker to open port 1883 etc
Extended Domoticz homebridge-plugin for latest Homebridge - adds temp/humidity/pressure sensors, power consumption sensors, DarkSkies virtual weather station support, YouLess Meter support, general % usage support & switch/lamp status checking!
- Marci
- Posts: 531
- Joined: Friday 22 January 2016 18:00
- Target OS: Raspberry Pi / ODroid
- Domoticz version: 3.8153
- Location: Wakefield, West Yorkshire UK
- Contact:
Re: eDomoticz Homebridge-Plugin
Not easily, no. Leave it with me.chrispazz wrote: I just did both again but the result is again the same.
Is there any way to debug this?
Extended Domoticz homebridge-plugin for latest Homebridge - adds temp/humidity/pressure sensors, power consumption sensors, DarkSkies virtual weather station support, YouLess Meter support, general % usage support & switch/lamp status checking!
- Marci
- Posts: 531
- Joined: Friday 22 January 2016 18:00
- Target OS: Raspberry Pi / ODroid
- Domoticz version: 3.8153
- Location: Wakefield, West Yorkshire UK
- Contact:
Re: eDomoticz Homebridge-Plugin
@chrispazz - what HomeKit app are you using, and what version of iOS?
Extended Domoticz homebridge-plugin for latest Homebridge - adds temp/humidity/pressure sensors, power consumption sensors, DarkSkies virtual weather station support, YouLess Meter support, general % usage support & switch/lamp status checking!
Re: eDomoticz Homebridge-Plugin
I am using standard home app with iOS 10 beta 4
Who is online
Users browsing this forum: No registered users and 0 guests