homebridge-edomoticz Plugin
Moderator: leecollings
Re: homebridge-edomoticz Plugin
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?
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?
- 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
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?
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!
-
- Posts: 612
- Joined: Wednesday 07 August 2013 19:09
- Target OS: -
- Domoticz version:
- Location: UK
- Contact:
Re: homebridge-edomoticz Plugin
Yes I have same issue.. believe I mentioned a couple of weeks ago. Mine behave same as goedh452
-
- Posts: 23
- Joined: Wednesday 31 August 2016 16:17
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
Re: homebridge-edomoticz Plugin
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
-
- Posts: 612
- Joined: Wednesday 07 August 2013 19:09
- Target OS: -
- Domoticz version:
- Location: UK
- Contact:
homebridge-edomoticz Plugin
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.
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.
Re: homebridge-edomoticz Plugin
Glad I'm not the only one
The setup worked fine with ios9 so I guess ios10 causes the problem and not homebridge or domoticz.
The setup worked fine with ios9 so I guess ios10 causes the problem and not homebridge or domoticz.
-
- 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
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
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
Re: homebridge-edomoticz Plugin
You did not do anything wrong. The native home app just does not support al sensors yet.
-
- Posts: 612
- Joined: Wednesday 07 August 2013 19:09
- Target OS: -
- Domoticz version:
- Location: UK
- Contact:
Re: homebridge-edomoticz Plugin
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
Sent from my iPhone using Tapatalk
-
- Posts: 17
- Joined: Sunday 18 September 2016 11:10
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
Re: homebridge-edomoticz Plugin
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)
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)
-
- Posts: 2
- Joined: Tuesday 18 February 2014 16:06
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
Re: homebridge-edomoticz Plugin
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
- 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
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.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)
Where has homebridge installed?
Code: Select all
sudo find / -name homebridge
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!
- 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
Yup. Homebridge allows as many plugins as you like.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
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: homebridge-edomoticz Plugin
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.goedh452 wrote:You did not do anything wrong. The native home app just does not support al sensors yet.
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: homebridge-edomoticz Plugin
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!
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!
- 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
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.
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.
-
- Posts: 51
- Joined: Tuesday 22 April 2014 22:17
- Target OS: OS X
- Domoticz version: Beta
- Location: France
- Contact:
Re: homebridge-edomoticz Plugin
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
If you already have docker installed, you can build and start homebridge like this :
Please let me know if you see things that I can improve.
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"]
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
Last edited by MacJL on Tuesday 15 November 2016 11:05, edited 4 times in total.
- 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
Nope, afaik door locks working fine... think I mistakenly merged something to master so had to undo - wasn't directly related.TheRamon wrote: @Marci, I saw you updated master, but then reverted it. Any issues with Doorlocks? I'd be happy to take a look.
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!
-
- Posts: 17
- Joined: Sunday 18 September 2016 11:10
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
Re: homebridge-edomoticz Plugin
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"
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
pi@raspberrypi:~ $
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
/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
pi@raspberrypi:~ $ sudo find / -name homebridge-edomoticzWhere has the plugin installed?
pi@raspberrypi:~ $
Code: Select all
sudo find / -name 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: homebridge-edomoticz Plugin
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!
Who is online
Users browsing this forum: No registered users and 1 guest