homebridge-edomoticz Plugin
Moderator: leecollings
-
- Posts: 39
- Joined: Wednesday 02 September 2015 11:47
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
eDomoticz Homebridge-Plugin
Marci Thank you for this great plugin!
PS Is there any news about RGB support?
PPS there is good manual about installing homebridge on raspberry https://github.com/nfarina/homebridge/w ... spberry-Pi
PS Is there any news about RGB support?
PPS there is good manual about installing homebridge on raspberry https://github.com/nfarina/homebridge/w ... spberry-Pi
- 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
Am currently awaiting files from a contributor which add in RGB support... soon as they arrive I'll update the repos.
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: 11
- Joined: Monday 16 February 2015 11:42
- Target OS: Raspberry Pi / ODroid
- Domoticz version: V3.5163
- Location: Eindhoven
- Contact:
Re: eDomoticz Homebridge-Plugin
Using this config i'm trying to get it to work. Something with authentication is going wrong. If i disable login all devices are fetched, if enabled with correct username and password set in config i get this:
Output:
config.json:
Somebody has any pointers for me?
Output:
Code: Select all
pi@raspberrypi ~/homebridge $ homebridge
*** WARNING *** The program 'node' 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=node>
*** WARNING *** The program 'node' 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=node&f=DNSServiceRegister>
[Tue Jun 14 2016 14:04:56 GMT+0200 (CEST)] Loaded plugin: homebridge-edomoticz
[Tue Jun 14 2016 14:04:56 GMT+0200 (CEST)] Registering accessory 'homebridge-edomoticz.eDomoticz'
[Tue Jun 14 2016 14:04:56 GMT+0200 (CEST)] Registering platform 'homebridge-edomoticz.eDomoticz'
[Tue Jun 14 2016 14:04:56 GMT+0200 (CEST)] ---
[Tue Jun 14 2016 14:04:56 GMT+0200 (CEST)] Loaded config.json with 0 accessories and 1 platforms.
[Tue Jun 14 2016 14:04:56 GMT+0200 (CEST)] ---
[Tue Jun 14 2016 14:04:56 GMT+0200 (CEST)] Loading 1 platforms...
[Tue Jun 14 2016 14:04:56 GMT+0200 (CEST)] [eDomoticz] Initializing eDomoticz platform...
[Tue Jun 14 2016 14:04:56 GMT+0200 (CEST)] [eDomoticz] Fetching Domoticz lights and switches...
[Tue Jun 14 2016 14:04:56 GMT+0200 (CEST)] Loading 0 accessories...
[Tue Jun 14 2016 14:04:57 GMT+0200 (CEST)] [eDomoticz] There was a problem connecting to Domoticz.
pi@raspberrypi ~/homebridge $
Code: Select all
{
"bridge": {
"name": "Homebridge",
"username": "CC:22:3D:E3:CE:30",
"port": 51826,
"pin": "031-45-154"
},
"description": "Configuration file for Domoticz platform.",
"platforms": [
{
"platform": "eDomoticz",
"name": "eDomoticz",
"server": "xxx:[email protected]",
"port": "8080"
}
],
"accessories": [
]
}
-
- Posts: 267
- Joined: Tuesday 14 January 2014 14:50
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
Re: eDomoticz Homebridge-Plugin
I got stuck with this. In the end I think I removed the login details from the config and then adjusted the permissions on the Domoticz settings page to allow the PC I was connecting from to do so without having to login.
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: 11
- Joined: Monday 16 February 2015 11:42
- Target OS: Raspberry Pi / ODroid
- Domoticz version: V3.5163
- Location: Eindhoven
- Contact:
Re: eDomoticz Homebridge-Plugin
Well if i do that, then it does not use authentication anymore because i have a reverse proxy running on the same raspberry pi so all incoming connections are coming from 127.0.0.1.
I read for other people it is working using the username and password in the server setting but for some kind of reason it does not work for me.
I read for other people it is working using the username and password in the server setting but for some kind of reason it does not work for me.
Re: eDomoticz Homebridge-Plugin
I am also having this problem.
- 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
Will have a look at it this weekend...
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: 45
- Joined: Wednesday 16 December 2015 14:30
- Target OS: Raspberry Pi / ODroid
- Domoticz version: 2020.1
- Location: Belgium
- Contact:
Re: eDomoticz Homebridge-Plugin
Hello everyone,
I have a problem understanding the "SwitchTypeVal" thing.
My roller blinds are controlled by Fibaro Roller Shutter 2 modules but they are recognized as light switches by Homekit.
How do I turn them into blinds switches ???
From what I read from the first post, the blinds are supported as "Blinds - Domoticz SwitchTypeVal: 3".
But how do I create a SwitchTypeVal 3 ???
Also, even if I set the switch type to "blind" or "inverted blind" the "Type" column still shows "Light/Switch" in the settings "device panel".
Thank you very much for your help !
I have a problem understanding the "SwitchTypeVal" thing.
My roller blinds are controlled by Fibaro Roller Shutter 2 modules but they are recognized as light switches by Homekit.
How do I turn them into blinds switches ???
From what I read from the first post, the blinds are supported as "Blinds - Domoticz SwitchTypeVal: 3".
But how do I create a SwitchTypeVal 3 ???
Also, even if I set the switch type to "blind" or "inverted blind" the "Type" column still shows "Light/Switch" in the settings "device panel".
Thank you very much for your help !
- 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
Blind support existed for half a day then was removed again...
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: 45
- Joined: Wednesday 16 December 2015 14:30
- Target OS: Raspberry Pi / ODroid
- Domoticz version: 2020.1
- Location: Belgium
- Contact:
Re: eDomoticz Homebridge-Plugin
Oh... And there is no way to customize that behavior within Domoticz ?
I mean the goal is to be able to tell Siri "Open/Close my blind" instead of "Turn it On/Off" which doesn't make sense !!!
I mean the goal is to be able to tell Siri "Open/Close my blind" instead of "Turn it On/Off" which doesn't make sense !!!
-
- Posts: 612
- Joined: Wednesday 07 August 2013 19:09
- Target OS: -
- Domoticz version:
- Location: UK
- Contact:
Re: eDomoticz Homebridge-Plugin
I set up a scene called "Close Curtains" "Close Utility Blind" etc.. And that scene switches the switch in domoticz.. If that makes sense..bxlouis wrote:Oh... And there is no way to customize that behavior within Domoticz ?
I mean the goal is to be able to tell Siri "Open/Close my blind" instead of "Turn it On/Off" which doesn't make sense !!!
-
- Posts: 45
- Joined: Wednesday 16 December 2015 14:30
- Target OS: Raspberry Pi / ODroid
- Domoticz version: 2020.1
- Location: Belgium
- Contact:
Re: eDomoticz Homebridge-Plugin
Thanks for your answer !simon_rb wrote:I set up a scene called "Close Curtains" "Close Utility Blind" etc.. And that scene switches the switch in domoticz.. If that makes sense..bxlouis wrote:Oh... And there is no way to customize that behavior within Domoticz ?
I mean the goal is to be able to tell Siri "Open/Close my blind" instead of "Turn it On/Off" which doesn't make sense !!!
However, I added a scene and it is not shown it the accessories list. How do you add it to your accessories list ?
Cheers!
-
- Posts: 612
- Joined: Wednesday 07 August 2013 19:09
- Target OS: -
- Domoticz version:
- Location: UK
- Contact:
Re: eDomoticz Homebridge-Plugin
I mean create a scene within HomeKit...
-
- Posts: 45
- Joined: Wednesday 16 December 2015 14:30
- Target OS: Raspberry Pi / ODroid
- Domoticz version: 2020.1
- Location: Belgium
- Contact:
Re: eDomoticz Homebridge-Plugin
Right! I get what you mean. I'll give it a try. Thanks !simon_rb wrote:I mean create a scene within HomeKit...
Still it is really frustrating the "blind" type does not exist... I mean it looks so obvious I don't get it !
-
- Posts: 612
- Joined: Wednesday 07 August 2013 19:09
- Target OS: -
- Domoticz version:
- Location: UK
- Contact:
Re: eDomoticz Homebridge-Plugin
Marci got it working but the blinds that ship with HomeKit give feedback to HomeKit stating how open they are where as most blinds within domoticz are either open or closed. Plus I have curtains and blinds and if it's set as blind within HomeKit it starts to get complicated as it isn't a blind.
Something like that anyways..
Something like that anyways..
-
- Posts: 45
- Joined: Wednesday 16 December 2015 14:30
- Target OS: Raspberry Pi / ODroid
- Domoticz version: 2020.1
- Location: Belgium
- Contact:
Re: eDomoticz Homebridge-Plugin
Well I use Fibaro Roller Shutter 2 and they do give feedback stating how open they are!simon_rb wrote:Marci got it working but the blinds that ship with HomeKit give feedback to HomeKit stating how open they are where as most blinds within domoticz are either open or closed. Plus I have curtains and blinds and if it's set as blind within HomeKit it starts to get complicated as it isn't a blind.
Something like that anyways..
Marci, would it be possible to give it a new try? Blinds support is a major topic in home automation and I am sure I am not the only one interested in that !
-
- Posts: 3
- Joined: Wednesday 10 June 2015 20:25
- Target OS: Raspberry Pi / ODroid
- Domoticz version: 3.5641
- Location: Netherlands
- Contact:
Re: eDomoticz Homebridge-Plugin
Trying to install homebridge-eDomoticz after moving Domoticz from another homeserver pc to a RPI. Domoticz itself is working fine, I have installed the latest beta-image and updated/upgraded RPI and Domoticz.
Following the Startpost to install Homebridge, but it seems that npm is not working as should. All commands starting with 'sudo npm ....' just show the prompt again. Also 'forever' seems to be not installed:
First I tried to remove nodejs and reinstall as described in startpost, but when trying to reinstall, I got the warning that is was already installed (I deleted as described in startpost). Then removed nodejs with :
That worked, now I could re-install nodejs, but after installation, the same reactions: npm does not react when called via sudo and gives a 'illegal instruction' when run as user pi. See below:
I don't think this is caused by too many sensors as others had, because the installation itself seems to be not working. But as no screen information (of logfiles) show anything I am a bit lost. How to proceed now ? Did anyone install this starting with the latest domoticz image on RPI ?
Following the Startpost to install Homebridge, but it seems that npm is not working as should. All commands starting with 'sudo npm ....' just show the prompt again. Also 'forever' seems to be not installed:
Code: Select all
pi@raspberrypi:~$ sudo npm -v homebridge
pi@raspberrypi:~$ npm -v homebridge
Illegal instruction
pi@raspberrypi:~$ forever -v
-bash: forever: command not found
pi@raspberrypi:~$
Code: Select all
sudo apt-get remove nodejs
Code: Select all
pi@raspberrypi:~/.homebridge$ sudo apt-get remove nodejs
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following package was automatically installed and is no longer required:
rlwrap
Use 'apt-get autoremove' to remove it.
The following packages will be REMOVED:
nodejs
0 upgraded, 0 newly installed, 1 to remove and 6 not upgraded.
After this operation, 37.7 MB disk space will be freed.
Do you want to continue? [Y/n] y
(Reading database ... 35137 files and directories currently installed.)
Removing nodejs (4.4.5-1nodesource1~jessie1) ...
Processing triggers for man-db (2.7.0.2-5) ...
pi@raspberrypi:~/.homebridge$ cd ..
pi@raspberrypi:~$ sudo apt-get install nodejs
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following NEW packages will be installed:
nodejs
0 upgraded, 1 newly installed, 0 to remove and 6 not upgraded.
Need to get 6,608 kB of archives.
After this operation, 31.8 MB of additional disk space will be used.
Get:1 https://deb.nodesource.com/node_0.12/ jessie/main nodejs armhf 0.12.13-1nodesource1~jessie1 [6,608 kB]
Fetched 6,608 kB in 8s (806 kB/s)
Selecting previously unselected package nodejs.
(Reading database ... 31697 files and directories currently installed.)
Preparing to unpack .../nodejs_0.12.13-1nodesource1~jessie1_armhf.deb ...
Unpacking nodejs (0.12.13-1nodesource1~jessie1) ...
Processing triggers for man-db (2.7.0.2-5) ...
Setting up nodejs (0.12.13-1nodesource1~jessie1) ...
pi@raspberrypi:~$ sudo npm -v
pi@raspberrypi:~$ sudo npm install
pi@raspberrypi:~$ sudo npm install -g homebridge && sudo npm install -g forever
-
- Posts: 21
- Joined: Monday 20 June 2016 11:37
- Target OS: Raspberry Pi / ODroid
- Domoticz version: 3.7722
- Location: Netherlands
- Contact:
Re: eDomoticz Homebridge-Plugin
I have exactly the same issue as mentioned above. Using RPI 3. Started all over again with a fresh install, same problem.
Raspberry Pi 3 - Domoticz 3.7722 - Aeon Labs Z-Stick GEN5 - RFXcom version: Ext/1012- Logitech Harmony Elite - Homebridge - Fibaro FGMS-001-ZW5 - Fibaro FGDW-002-01 - KAKU stuff.
- 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
Looks like the nodejs package from Raspbian Jessie repos now only installs the node binary. You'll have to then install npm separately:
Code: Select all
sudo apt-get install npm
Last edited by Marci on Tuesday 21 June 2016 22:29, edited 1 time 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
NPMJS repo updated to v0.2.0...
To disable Type3 Blind Support (as I know some don’t like it), just edit index.js and add // to the beginning of each of the following lines:
...becomes...
If using an IDE editor, this should begin at line 1114.
Code: Select all
V0.2.0 - 2016/06/21
- Switch Total & Current Power Consumption UUIDs to Elgato types
- Enable SwitchType 13 blinds(%) - Fibaro controlled etc.
- Enable Location and Occupancy sensors - Location being Domoticz text type sensors with "Location" in title,
and Occupancy sensors being on/off type sensors with "Occupied" in title. Should work with most PIRs etc.
Code: Select all
case this.swTypeVal == 3:{ //blinds
var blindService = new Service.WindowCovering(this.name);
blindService.getCharacteristic(Characteristic.CurrentPosition).on('get', this.getBlindStatus.bind(this));
blindService.getCharacteristic(Characteristic.TargetPosition).on('get', this.getBlindStatus.bind(this)).on('set', this.setBlindStatus.bind(this));
blindService.getCharacteristic(Characteristic.PositionState).on('get', this.getBlindPStatus.bind(this));
services.push(blindService);
break;
}
Code: Select all
//case this.swTypeVal == 3:{ //blinds
// var blindService = new Service.WindowCovering(this.name);
// blindService.getCharacteristic(Characteristic.CurrentPosition).on('get', this.getBlindStatus.bind(this));
// blindService.getCharacteristic(Characteristic.TargetPosition).on('get', this.getBlindStatus.bind(this)).on('set', this.setBlindStatus.bind(this));
// blindService.getCharacteristic(Characteristic.PositionState).on('get', this.getBlindPStatus.bind(this));
// services.push(blindService);
// break;
// }
If using an IDE editor, this should begin at line 1114.
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