homebridge-edomoticz Plugin

Moderator: leecollings

goedh452
Posts: 17
Joined: Thursday 08 August 2013 15:45
Target OS: -
Domoticz version:
Contact:

Re: homebridge-edomoticz Plugin

Post by goedh452 »

I seem to have an interesting "feature". In iOS10 Beta everything was fine, but in the final version commands are sent twice. My setup is: iPhone with iOS10, Homebridge and Domoticz running on a Pi, RFXCom transceiver and KAKU (klikaanklikuit) dimmers. When I send a command eg to set the dimmer to 80%, two commands are send. The first sets the dimmer to 80% and then an "on" command is send resulting in the dimmer to go brighter, less bright, etc.

This goes both for scenes as well as individual dimmers.

The Hombridge console shows:
[9/16/2016, 9:54:07 AM] [eDomoticz] Setting power state to on
[9/16/2016, 9:54:07 AM] [eDomoticz] WK - Bollampen sent command succesfully
[9/16/2016, 9:54:07 AM] [eDomoticz] WK - Bollampen sent command succesfully

Any solutions?
User avatar
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: homebridge-edomoticz Plugin

Post by Marci »

One for TheRamon - dimmers are still on my shopping list.

Can you get the json output for it as per first post?

Abstracting things out so they work with every hardware combo's tricky.

Anyone else have issues with their dimmers on iOS10?
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!
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 »

Yes I have same issue.. believe I mentioned a couple of weeks ago. Mine behave same as goedh452
Toyman
Posts: 23
Joined: Wednesday 31 August 2016 16:17
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: homebridge-edomoticz Plugin

Post by Toyman »

If I set a dimmer to eg 80% in Eve, the node receives 2 commands: "full on", and then "80%" so the light is at 80% in the end but via 100% in between
simon_rb
Posts: 612
Joined: Wednesday 07 August 2013 19:09
Target OS: -
Domoticz version:
Location: UK
Contact:

homebridge-edomoticz Plugin

Post by simon_rb »

I think the issue is somewhere an on command is sent then the percentage. Whether it's homebridge/domoticz or HomeKit, I'm not sure.

Just tested mine with Eve and it works fine. It does take a while going through each brightness setting but no on command is sent. Is the native home app the messes mine up.
goedh452
Posts: 17
Joined: Thursday 08 August 2013 15:45
Target OS: -
Domoticz version:
Contact:

Re: homebridge-edomoticz Plugin

Post by goedh452 »

Glad I'm not the only one :D

The setup worked fine with ios9 so I guess ios10 causes the problem and not homebridge or domoticz.
Mazzokun
Posts: 89
Joined: Thursday 28 April 2016 23:55
Target OS: Raspberry Pi / ODroid
Domoticz version: Beta
Location: Milan, Italy
Contact:

Re: homebridge-edomoticz Plugin

Post by Mazzokun »

Hi I'm on iOS 10 and HomeKit app.
If I use Elgato Eve App I can see CPU% and Current Usage. If I use the Native HomeKit App tell me that are unsupported.
I have done something wrong or it's Apple fault?
Thank you :)
goedh452
Posts: 17
Joined: Thursday 08 August 2013 15:45
Target OS: -
Domoticz version:
Contact:

Re: homebridge-edomoticz Plugin

Post by goedh452 »

You did not do anything wrong. The native home app just does not support al sensors yet.
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 »

Goedh452 is correct. CPU and Current Usage are custom devices, lucky enough Eve supports custom devices whereas the native home app does not.


Sent from my iPhone using Tapatalk
rich710
Posts: 17
Joined: Sunday 18 September 2016 11:10
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: homebridge-edomoticz Plugin

Post by rich710 »

Thank you for this excellent (i hope) plugin, I installed jessie and domoticz the manual way, but then tried this guide, think I did your guide as sdcard-image version. and now I am stucked. Everytime I try to start with the "homebridge" command I get an error that says like this, any help about what is wrong in my setup?

Regards //Richard

[9/18/2016, 9:48:32 AM] No plugins found. See the README for information on inst alling plugins.
[9/18/2016, 9:48:33 AM] Loaded config.json with 0 accessories and 1 platforms.
[9/18/2016, 9:48:33 AM] ---
[9/18/2016, 9:48:33 AM] Loading 1 platforms...
/usr/local/lib/node_modules/homebridge/lib/api.js:106
throw new Error("The requested platform '" + name + "' was not registered by any plugin.");
^

Error: The requested platform 'eDomoticz' was not registered by any plugin.
at API.platform (/usr/local/lib/node_modules/homebridge/lib/api.js:106:13)
at Server._loadPlatforms (/usr/local/lib/node_modules/homebridge/lib/server. js:263:45)
at Server.run (/usr/local/lib/node_modules/homebridge/lib/server.js:71:36)
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)
binbakker
Posts: 2
Joined: Tuesday 18 February 2014 16:06
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: homebridge-edomoticz Plugin

Post by binbakker »

:) :) :)
thx for the effort, after a lot of errors, I finally have it up and running.
Is possible to add more plugins?
for example: https://www.npmjs.com/package/homebridge-synology
Not sure if I will use this one cause it contains password.

thnx again :mrgreen:
User avatar
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: homebridge-edomoticz Plugin

Post by Marci »

rich710 wrote:Thank you for this excellent (i hope) plugin, I installed jessie and domoticz the manual way, but then tried this guide, think I did your guide as sdcard-image version. and now I am stucked. Everytime I try to start with the "homebridge" command I get an error that says like this, any help about what is wrong in my setup?

Regards //Richard

[9/18/2016, 9:48:32 AM] No plugins found. See the README for information on inst alling plugins.
[9/18/2016, 9:48:33 AM] Loaded config.json with 0 accessories and 1 platforms.
[9/18/2016, 9:48:33 AM] ---
[9/18/2016, 9:48:33 AM] Loading 1 platforms...
/usr/local/lib/node_modules/homebridge/lib/api.js:106
throw new Error("The requested platform '" + name + "' was not registered by any plugin.");
^

Error: The requested platform 'eDomoticz' was not registered by any plugin.
at API.platform (/usr/local/lib/node_modules/homebridge/lib/api.js:106:13)
at Server._loadPlatforms (/usr/local/lib/node_modules/homebridge/lib/server. js:263:45)
at Server.run (/usr/local/lib/node_modules/homebridge/lib/server.js:71:36)
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)
The SD card image guide is for the SD card image, not for manual installs. As a result, the plugin hasn't installed in the right location.

Where has homebridge installed?

Code: Select all

sudo find / -name homebridge
Where has the plugin installed?

Code: Select all

sudo find / -name homebridge-edomoticz
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!
User avatar
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: homebridge-edomoticz Plugin

Post by Marci »

binbakker wrote::) :) :)
thx for the effort, after a lot of errors, I finally have it up and running.
Is possible to add more plugins?
for example: https://www.npmjs.com/package/homebridge-synology
Not sure if I will use this one cause it contains password.

thnx again :mrgreen:
Yup. Homebridge allows as many plugins as you like.
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!
User avatar
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: homebridge-edomoticz Plugin

Post by Marci »

goedh452 wrote:You did not do anything wrong. The native home app just does not support al sensors yet.
Not a matter of 'yet' - native app will only ever support native types & MFi-certified custom types. It'll never support non-MFi custom types. As a result, remote automation etc may also have limited functionality as that also requires an MFi chip according to latest HomeKit spec.
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!
User avatar
TheRamon
Posts: 126
Joined: Tuesday 12 July 2016 11:32
Target OS: Raspberry Pi / ODroid
Domoticz version: BETA
Location: NL/DE
Contact:

Re: homebridge-edomoticz Plugin

Post by TheRamon »

Yep, heard about the dimmer issue.
Sends two commands back, namely the power state, and if on> sends dimmer value also.

Should be one command only. I'll have a look!
User avatar
TheRamon
Posts: 126
Joined: Tuesday 12 July 2016 11:32
Target OS: Raspberry Pi / ODroid
Domoticz version: BETA
Location: NL/DE
Contact:

Re: homebridge-edomoticz Plugin

Post by TheRamon »

Alright, I think I have tackled the dimmer problem now. Only sends the "double" on command upon turning ON the switch now. Otherwise just dims the thingy.
Can anyone test this on the mqtt-integration branch?

@Marci, I saw you updated master, but then reverted it. Any issues with Doorlocks? I'd be happy to take a look.
MacJL
Posts: 51
Joined: Tuesday 22 April 2014 22:17
Target OS: OS X
Domoticz version: Beta
Location: France
Contact:

Re: homebridge-edomoticz Plugin

Post by MacJL »

Hello,

I don't know if someone is interested, but I've made a Dockerfile with homebrideg-edomoticz that can work on x86(PC) or arm (Rapsberry).

Here is the Dockerfile

Code: Select all

## On ARM v6l
FROM docker.io/resin/rpi-raspbian:jessie
ENV NODE_ARCH=armv6l

## On x86_64
#FROM debian:jessie
#ENV NODE_ARCH=x64

# Base packages
ENV DEBIAN_FRONTEND noninteractive
RUN apt-get update && \
 apt-get install -y curl xz-utils git python make g++ libavahi-compat-libdnssd-dev && \
 apt-get clean

# Install node.js
ENV NODE_VERS=v6.9.1
WORKDIR /opt
RUN curl -O "https://nodejs.org/dist/$NODE_VERS/node-$NODE_VERS-linux-$NODE_ARCH.tar.xz"
RUN tar -xf node-$NODE_VERS-linux-$NODE_ARCH.tar.xz
ENV NODE_HOME=/opt/node-$NODE_VERS-linux-$NODE_ARCH
ENV PATH="$NODE_HOME/bin:${PATH}"

# Install Homebridge
WORKDIR $NODE_HOME/lib/node_modules
ADD https://api.github.com/repos/nfarina/homebridge/git/refs/heads/master /opt/homebridge.info
RUN git clone -b master https://github.com/nfarina/homebridge.git
WORKDIR $NODE_HOME/lib/node_modules/homebridge
RUN npm install

# Install Homebridge-eDomoticz from git
WORKDIR $NODE_HOME/lib/node_modules
ADD https://api.github.com/repos/PatchworkBoy/homebridge-edomoticz/git/refs/heads/master /opt/homebridge-edomoticz.info
RUN git clone -b master https://github.com/PatchworkBoy/homebridge-edomoticz.git
WORKDIR $NODE_HOME/lib/node_modules/homebridge-edomoticz
RUN npm install

# Final parameters
WORKDIR $NODE_HOME/lib/node_modules
VOLUME /root/.homebridge
VOLUME /var/run/dbus
EXPOSE 51826
ENTRYPOINT ["/bin/bash", "-c"]
CMD [".bin/homebridge"]
If you already have docker installed, you can build and start homebridge like this :

Code: Select all

mkdir ~/edomoticz
nano ~/edomoticz/Dockerfile
	# Put the Dockerfile here, and comment/uncomment first lines to match your hardware
nano ~/edomoticz/config.json
	# Put your config.json here
docker build -t homebridge-edomoticz ~/edomoticz/
docker run -d -p 51826:51826 -v ~/edomoticz:/root/.homebridge -v /var/run/dbus:/var/run/dbus --restart=always homebridge-edomoticz
Please let me know if you see things that I can improve.
Last edited by MacJL on Tuesday 15 November 2016 11:05, edited 4 times in total.
User avatar
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:

homebridge-edomoticz Plugin

Post by Marci »

TheRamon wrote: @Marci, I saw you updated master, but then reverted it. Any issues with Doorlocks? I'd be happy to take a look.
Nope, afaik door locks working fine... think I mistakenly merged something to master so had to undo - wasn't directly related.

Got a few branches I need to merge in covering SSL issues as those are confirmed as fixed now.
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!
rich710
Posts: 17
Joined: Sunday 18 September 2016 11:10
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: homebridge-edomoticz Plugin

Post by rich710 »

Thanks for your answer, I realized I followed the wrong guide, but if It's possible to solve it without doing a total
reinstall it would be nice.
I have posted my "find" commands further down in this message.
Couldn't find anything for "homebridge-edomoticz"

Where has homebridge installed?

Code: Select all

sudo find / -name homebridge
pi@raspberrypi:~ $ sudo find / -name homebridge
/root/.npm/homebridge
/root/.npm/registry.npmjs.org/homebridge
/usr/bin/homebridge
/usr/local/lib/node_modules/homebridge
/usr/local/lib/node_modules/homebridge/bin/homebridge
/usr/local/bin/homebridge
Where has the plugin installed?
pi@raspberrypi:~ $ sudo find / -name homebridge-edomoticz
pi@raspberrypi:~ $


Code: Select all

sudo find / -name homebridge-edomoticz
User avatar
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: homebridge-edomoticz Plugin

Post by Marci »

Looks like it hasn't installed then.

Code: Select all

sudo npm install -g homebridge-edomoticz 
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!
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest