homebridge-edomoticz Plugin
Moderator: leecollings
- 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
Seems a bit quiet here for a while, anyway I'm thinking of coming back to domoticz from Vera!
I am running domoticz in a docker but did I see the official domoticz SD image now contains your Siri stuff ?
I am running domoticz in a docker but did I see the official domoticz SD image now contains your Siri stuff ?
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
Er... dunno! If it does, no-one's said anything to me!!
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!
-
- Posts: 612
- Joined: Wednesday 07 August 2013 19:09
- Target OS: -
- Domoticz version:
- Location: UK
- Contact:
Re: eDomoticz Homebridge-Plugin
The image has Homebridge but I don't think it has this plugin.
It's quiet here as it just works
Marci can relax lol
Sent from my iPhone using Tapatalk
It's quiet here as it just works
Marci can relax lol
Sent from my iPhone using Tapatalk
- 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
Cool! Could do with knowing the homebridge install location on the image so I can update OP instructions accordingly, so if anyone checks it out do let me know!
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!
-
- Posts: 18
- Joined: Sunday 31 January 2016 1:24
- Target OS: Raspberry Pi / ODroid
- Domoticz version: 3.4834
- Contact:
Re: eDomoticz Homebridge-Plugin
Some days ago my homekit app failed to be able to control my homebridge bridged stuff.
I removed the data from my phone.
I removed the persist directory from homebridge and started it up with sudo forever.
According to the homebridge logs all is well with an output like:
I fired up the app on my phone, added the new (as I removed the old) home, added homebridge and entered the key.
the app then tries to find accessories but fails to find any.
I am not sure how to debug this to find out where the fault might be.. Any suggestion?
I removed the data from my phone.
I removed the persist directory from homebridge and started it up with sudo forever.
According to the homebridge logs all is well with an output like:
Code: Select all
[Fri May 13 2016 11:39:20 GMT+0200 (CEST)] Loaded plugin: homebridge-edomoticz
[Fri May 13 2016 11:39:20 GMT+0200 (CEST)] Registering accessory 'homebridge-edomoticz.eDomoticz'
[Fri May 13 2016 11:39:20 GMT+0200 (CEST)] Registering platform 'homebridge-edomoticz.eDomoticz'
[Fri May 13 2016 11:39:20 GMT+0200 (CEST)] ---
[Fri May 13 2016 11:39:20 GMT+0200 (CEST)] Loaded config.json with 0 accessories and 1 platforms.
[Fri May 13 2016 11:39:20 GMT+0200 (CEST)] ---
[Fri May 13 2016 11:39:21 GMT+0200 (CEST)] Loading 1 platforms...
[Fri May 13 2016 11:39:21 GMT+0200 (CEST)] [eDomoticz] Initializing eDomoticz platform...
[Fri May 13 2016 11:39:21 GMT+0200 (CEST)] [eDomoticz] Fetching Domoticz lights and switches...
[Fri May 13 2016 11:39:21 GMT+0200 (CEST)] Loading 0 accessories...
[Fri May 13 2016 11:39:21 GMT+0200 (CEST)] [eDomoticz] Initializing platform accessory 'Barometer'...
[Fri May 13 2016 11:39:21 GMT+0200 (CEST)] [eDomoticz] Initializing platform accessory 'Hörnlampa'...
....
[Fri May 13 2016 11:39:21 GMT+0200 (CEST)] [eDomoticz] Initializing platform accessory 'Övervåning'...
Scan this code with your HomeKit App on your iOS device to pair with Homebridge:
┌────────────┐
│ 031-45-154 │
└────────────┘
[Fri May 13 2016 11:39:21 GMT+0200 (CEST)] Homebridge is running on port 51826.
the app then tries to find accessories but fails to find any.
I am not sure how to debug this to find out where the fault might be.. Any suggestion?
- 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
shouldn't need sudo forever... just forever. Using sudo puts persist & pairing info etc in /root/.homebridge rather than ~/.homebridge
Remove persist etc from both these locations, relaunch homebridge via forever WITHOUT using sudo, then head to HomeKit and set yourself back up. Might need to delete the default home again first.
Remove persist etc from both these locations, relaunch homebridge via forever WITHOUT using sudo, then head to HomeKit and set yourself back up. Might need to delete the default home again first.
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!
-
- Posts: 18
- Joined: Sunday 31 January 2016 1:24
- Target OS: Raspberry Pi / ODroid
- Domoticz version: 3.4834
- Contact:
Re: eDomoticz Homebridge-Plugin
Thanks for your help Marci!
The problem seems to have been on the phone. I borrowed my daughters and then it worked as it should.
I removed the data from my phone, removed the app, restarted the phone and reinstalled the app and after that I could successfully receive the accessories again!
/M
The problem seems to have been on the phone. I borrowed my daughters and then it worked as it should.
I removed the data from my phone, removed the app, restarted the phone and reinstalled the app and after that I could successfully receive the accessories again!
/M
-
- Posts: 267
- Joined: Tuesday 14 January 2014 14:50
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
Re: eDomoticz Homebridge-Plugin
I've been trying for quite some time to get this working but I get stumped at the same point everytime.
I follow all the instruction but when I get here: "forever start /usr/local/lib/node_modules/homebridge/bin/homebridge"
This is the result: What am I doing wrong?
I follow all the instruction but when I get here: "forever start /usr/local/lib/node_modules/homebridge/bin/homebridge"
This is the result: What am I doing wrong?
Running Domoticz on Pi3 with RFXtrx433e. LWRF power sockets and dimmer switches. Integrated my existing wirefree alarm PIRs and door contacts with domoticz. Geofencing with Pilot. Harmony Hub. Tado for Heating. Now playing with mysensors.
- 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
Looks like forever isn't installed or isn't in your path
Sent from my iPhone using Tapatalk
Sent from my iPhone using Tapatalk
Domoticz 3.5641 on RPI (Raspbian GNU/Linux 8)
-
- Posts: 267
- Joined: Tuesday 14 January 2014 14:50
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
Re: eDomoticz Homebridge-Plugin
How do I do that?
I run "sudo apt-get update && sudo apt-get upgrade" and this process runs
Then when I get back to "pi@raspberrypi:~$" I do "sudo npm install -g homebridge && sudo npm install -g forever" but it just immediately reverts back to "pi@raspberrypi:~$"!!
I also tried
sudo rm -rf /usr/local/{lib/node{,/.npm,_modules},bin,share/man}/{npm*,node*,man1/node*} /var/db/receipts/org.nodejs.*
hash -r
sudo curl -sL https://deb.nodesource.com/setup_0.12 | sudo -E bash -
sudo apt-get install nodejs
and
sudo apt-get install libavahi-compat-libdnssd-dev
I can't remember the exact outcome from these but I get a reply so as to imply that all the latest versions were already installed.
I run "sudo apt-get update && sudo apt-get upgrade" and this process runs
Then when I get back to "pi@raspberrypi:~$" I do "sudo npm install -g homebridge && sudo npm install -g forever" but it just immediately reverts back to "pi@raspberrypi:~$"!!
I also tried
sudo rm -rf /usr/local/{lib/node{,/.npm,_modules},bin,share/man}/{npm*,node*,man1/node*} /var/db/receipts/org.nodejs.*
hash -r
sudo curl -sL https://deb.nodesource.com/setup_0.12 | sudo -E bash -
sudo apt-get install nodejs
and
sudo apt-get install libavahi-compat-libdnssd-dev
I can't remember the exact outcome from these but I get a reply so as to imply that all the latest versions were already installed.
Running Domoticz on Pi3 with RFXtrx433e. LWRF power sockets and dimmer switches. Integrated my existing wirefree alarm PIRs and door contacts with domoticz. Geofencing with Pilot. Harmony Hub. Tado for Heating. Now playing with mysensors.
-
- Posts: 68
- Joined: Friday 12 December 2014 14:42
- Target OS: Raspberry Pi / ODroid
- Domoticz version: 2020.1
- Contact:
Re: eDomoticz Homebridge-Plugin
What happens when you type eithermarkk wrote:How do I do that?
I run "sudo apt-get update && sudo apt-get upgrade" and this process runs
Then when I get back to "pi@raspberrypi:~$" I do "sudo npm install -g homebridge && sudo npm install -g forever" but it just immediately reverts back to "pi@raspberrypi:~$"!!
I also tried
sudo rm -rf /usr/local/{lib/node{,/.npm,_modules},bin,share/man}/{npm*,node*,man1/node*} /var/db/receipts/org.nodejs.*
hash -r
sudo curl -sL https://deb.nodesource.com/setup_0.12 | sudo -E bash -
sudo apt-get install nodejs
and
sudo apt-get install libavahi-compat-libdnssd-dev
I can't remember the exact outcome from these but I get a reply so as to imply that all the latest versions were already installed.
node -v
npm -v
-
- Posts: 19
- Joined: Wednesday 04 November 2015 6:05
- Target OS: Windows
- Domoticz version:
- Contact:
Re: eDomoticz Homebridge-Plugin
markk wrote:How do I do that?
I run "sudo apt-get update && sudo apt-get upgrade" and this process runs
Then when I get back to "pi@raspberrypi:~$" I do "sudo npm install -g homebridge && sudo npm install -g forever" but it just immediately reverts back to "pi@raspberrypi:~$"!!
I also tried
sudo rm -rf /usr/local/{lib/node{,/.npm,_modules},bin,share/man}/{npm*,node*,man1/node*} /var/db/receipts/org.nodejs.*
hash -r
sudo curl -sL https://deb.nodesource.com/setup_0.12 | sudo -E bash -
sudo apt-get install nodejs
and
sudo apt-get install libavahi-compat-libdnssd-dev
I can't remember the exact outcome from these but I get a reply so as to imply that all the latest versions were already installed.
I had the exact thing happening.
The only way I was finally able to get eDomoticz working (there is so many outdated tutorials) was:
1. install Node Version Manager https://github.com/creationix/nvm/blob/ ... E.markdown
2. Followed their instructions and used
Code: Select all
nvm install 4.2.6
Code: Select all
. ~/.nvm/nvm.sh
Code: Select all
nvm ls
Code: Select all
nvm unstall x.x.x
Code: Select all
nvm alias default 4.2.6
- that finally fixed all illegal instructions errors or nothing happening after using any npm related command
npm takes a little while before it start installing but all works now. Finally I am able to use edomoticz.. no other way worked for me.
now every time I want to use nvm I just have to activate it again" . ~/.nvm/nvm.sh" but I might add this as a startup thingy....
I might be wrong with this, but I really worked for me. Linux is a complete nightmare (IMHO) when it comes to following guides etc. there is ALWAYS one package that is outdated and causes problems, or some repo dependency crap, or something just weird... on top of that there is supposed to be that issue with detecting ARM architecture in the old and new version of node...
- 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:
eDomoticz Homebridge-Plugin
There's only ONE guide for eDomoticz - first page of this thread. The issue tends to be people following guidance for an ancient version of homebridge & the previous Domoticz plugin (nothing to do with me!) before realising their error, and THEN trying to install eDomoticz & the latest homebridge... or they’re working on a system that has been in-use and has had a shafted node installation for ages without actually realising it.
Run each command separately...
Post the output
Post the output
Now find where forever is installed...
Post the output
And now find where homebridge is installed...
Post the output
Run each command separately...
Code: Select all
sudo npm install -g homebridge
Code: Select all
sudo npm install -g forever
Now find where forever is installed...
Code: Select all
sudo find / -name forever
And now find where homebridge is installed...
Code: Select all
sudo find / -name homebridge
Last edited by Marci on Wednesday 18 May 2016 18:36, edited 3 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!
- 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
( or read back through this thread, as this has already been covered - read onwards from viewtopic.php?f=36&t=10272&start=220#p82466 )
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!
-
- Posts: 267
- Joined: Tuesday 14 January 2014 14:50
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
Re: eDomoticz Homebridge-Plugin
OK, i followed these instructions and this is what I got:Marci wrote:There's only ONE guide for eDomoticz - first page of this thread. The issue tends to be people following guidance for an ancient version of homebridge & the previous Domoticz plugin (nothing to do with me!) before realising their error, and THEN trying to install eDomoticz & the latest homebridge... or they’re working on a system that has been in-use and has had a shafted node installation for ages without actually realising it.
Run each command separately...
Post the outputCode: Select all
sudo npm install -g homebridge
Post the outputCode: Select all
sudo npm install -g forever
Now find where forever is installed...
Post the outputCode: Select all
sudo find / -name forever
And now find where homebridge is installed...
Post the outputCode: Select all
sudo find / -name homebridge
Running Domoticz on Pi3 with RFXtrx433e. LWRF power sockets and dimmer switches. Integrated my existing wirefree alarm PIRs and door contacts with domoticz. Geofencing with Pilot. Harmony Hub. Tado for Heating. Now playing with mysensors.
-
- Posts: 19
- Joined: Wednesday 04 November 2015 6:05
- Target OS: Windows
- Domoticz version:
- Contact:
Re: eDomoticz Homebridge-Plugin
markk wrote:Marci wrote:There's only ONE guide for eDomoticz - first page of this thread. The issue tends to be people following guidance for an ancient version of homebridge & the previous Domoticz plugin (nothing to do with me!) before realising their error, and THEN trying to install eDomoticz & the latest homebridge... or they’re working on a system that has been in-use and has had a shafted node installation for ages without actually realising it.
....
OK, i followed these instructions and this is what I got:
output.png
That was exactly what happened to me. With a fresh, latest install of the Domoticz Raspi image, logged in as pi. Just no output, exactly like in the image above.
@Marci:
What I meant when I said that there are multiple guides...I meant going down the rabbit hole to get npm working,
Most of my searches ended pointing to outdated homebridge how-tos or previous Domoticz plugins, exactly as you said...
I finally found a solution using nvm to try different versions of node.js/npm ... some resulting in outputting: "illegal instruction" and some in nothing at all. After I got node.js 4.2.6 installed npm started working too and all went well.
Thanks again Marci for all you have done, your plugin is simply awesome. I did not want to sound like I haven't bothered reading through the thread or ungrateful in any way.
- 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
Ok - we can see from the output there that homebridge appears to be installed, but forever has failed to install. So, let's put npm in verbose mode, as it (now) defaults to quiet mode...markk wrote:
OK, i followed these instructions and this is what I got:
output.png
Code: Select all
sudo npm -dd install -g forever
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!
-
- Posts: 267
- Joined: Tuesday 14 January 2014 14:50
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
Re: eDomoticz Homebridge-Plugin
@Gomario and @Marci
Thanks for your replies. I'll give this a go this evening. I really appreciate your support.
Thanks for your replies. I'll give this a go this evening. I really appreciate your support.
Running Domoticz on Pi3 with RFXtrx433e. LWRF power sockets and dimmer switches. Integrated my existing wirefree alarm PIRs and door contacts with domoticz. Geofencing with Pilot. Harmony Hub. Tado for Heating. Now playing with mysensors.
-
- Posts: 267
- Joined: Tuesday 14 January 2014 14:50
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
Re: eDomoticz Homebridge-Plugin
I tried that and nothing happened
Code: Select all
pi@raspberrypi:~$ sudo npm -dd install -g forever
pi@raspberrypi:~$
Running Domoticz on Pi3 with RFXtrx433e. LWRF power sockets and dimmer switches. Integrated my existing wirefree alarm PIRs and door contacts with domoticz. Geofencing with Pilot. Harmony Hub. Tado for Heating. Now playing with mysensors.
- 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:
eDomoticz Homebridge-Plugin
Hmmm.... I suspect forever is failing to build in it's repo. Will investigate further. In meantime, use instructions for loading on boot here: https://github.com/nfarina/homebridge/w ... spberry-Pi (but note path differences - refer to your last screencap for paths to homeBridge, IE: yours is in /usr/bin not /usr/local/bin etc)
You can still run everything fine, just not via forever... so just skip the forever steps in the first post and continue on with the rest, then use details at link above to get it running on boot.
If forever is looking to be terminally screwed I'll update all the instructions to remove it, but as it stands, forever isn't required for anything else involved to work.
You can still run everything fine, just not via forever... so just skip the forever steps in the first post and continue on with the rest, then use details at link above to get it running on boot.
If forever is looking to be terminally screwed I'll update all the instructions to remove it, but as it stands, forever isn't required for anything else involved to work.
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!
Who is online
Users browsing this forum: No registered users and 0 guests