homebridge-edomoticz Plugin
Moderator: leecollings
- 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 out of ideas then - sorry! You'll have to raise as a new issue on the homebridge GitHub repo.
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
Brilliant - Thanks. As I mentioned before I have set a scene to operate the button in HomeKit, It works by saying "Open Curtains" that scene turns off Curtains switch in Domoticz which then opens the curtains and "Close Curtains" Turns the switch on and closes them. Same applies with blinds. With your update maybe we can ask if the curtains are closed and Siri would be able to answerMarci wrote:Cool - shall have an update supporting those by Sunday hopefully.
- 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
You crack me up, seriously you must be the most responsive, approachable dev I have ever come across!!!Marci wrote:Cool - shall have an update supporting those by Sunday hopefully.
Get a Vera and redo the plugin for me haha
Nice one mate.
Domoticz 3.5641 on RPI (Raspbian GNU/Linux 8)
-
- Posts: 134
- Joined: Friday 10 April 2015 23:53
- Target OS: Linux
- Domoticz version:
- Contact:
Re: eDomoticz Homebridge-Plugin
Very nice thank you! The how to worked like a charm, only the copy&paste from the homebridge.sh script didn't work.
The three “ were pasted as ^^ (from my mac to nano on RPi3)
The three “ were pasted as ^^ (from my mac to nano on RPi3)
-
- Posts: 278
- Joined: Sunday 14 December 2014 12:28
- Target OS: Raspberry Pi / ODroid
- Domoticz version: V4.11375
- Contact:
Re: eDomoticz Homebridge-Plugin
Thanks for the help.Marci wrote:Am out of ideas then - sorry! You'll have to raise as a new issue on the homebridge GitHub repo.
But I got it working now, don't ask how
-
- Posts: 612
- Joined: Wednesday 07 August 2013 19:09
- Target OS: -
- Domoticz version:
- Location: UK
- Contact:
Re: eDomoticz Homebridge-Plugin
^^^Your absolutely right^^^You crack me up, seriously you must be the most responsive, approachable dev I have ever come across!!!
Get a Vera and redo the plugin for me haha
Nice one mate.
I have just managed to hook a raspberry pi to my garage door using GPIO pins and can now open it with a toggle switch within domoticz. Only thing is I don't know how to get Siri (HomeKit) to recognise that its a garage door. Even tried a scene call "Open Garage Door" and it ignores the scene and says "I can't find any garage doors" Is there a way of convincing Siri that its a garage door. Didn't notice a door option in Eve. Hmmm Any ideas would be greatly appreciated.
Cheers
- 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
Most reliable method for scenes is 'set [scene name]'. Call the scene 'garage door open'. Siri won't recognise it's a door unless I define it as the door service type, but this is reserved for specific sensors which can (must) be able to provide a jammed/unjammed/closed/open/locked/unlocked state to meet the HomeKit service definition, which a Domoticz switch can't.
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:
eDomoticz Homebridge-Plugin
Ah, that's a shame!! I'll try the workaround - thanks for the reply!Marci wrote:Most reliable method for scenes is 'set [scene name]'. Call the scene 'garage door open'. Siri won't recognise it's a door unless I define it as the door service type, but this is reserved for specific sensors which can (must) be able to provide a jammed/unjammed/closed/open/locked/unlocked state to meet the HomeKit service definition, which a Domoticz switch can't.
Update:- saying the word set works, I'll have to remember to say "set"
Last edited by simon_rb on Saturday 02 April 2016 9:53, edited 1 time 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:
eDomoticz Homebridge-Plugin
(For an idea of how HomeKit works, Have a look at https://github.com/KhaosT/HAP-NodeJS/bl ... itTypes.js - scroll to bottom - line 1791 onwards - and you'll see service definitions and any required characteristics. Scroll up and find the characteristics for their format etc. These are the official HomeKit sensor types and expected response types etc - I need to go thru this again myself as new services and characteristics appear with every iOS update...!)
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
SwitchType:3 support now added which should cover all your blinds! Use code below to update & restart, then let me know if it works.simon_rb wrote:...I have curtains and blinds, I have one switch for each curtain/blind in domoticz to open and close them. I have setup a scene called open curtains,open kitchen blind etc.. And it works well. Just wondered if there is a way for your plugin to show them as blinds/curtains to HomeKit?
Give it another try with the update installed and let me know!Bink wrote:I can confirm that now it's not crashing anymore but as mentioned there the override does not work as expected (the temps are set as a permanent override).
Code: Select all
sudo npm update -g homebridge-edomoticz
forever restart /usr/local/lib/node_modules/homebridge/bin/homebridge
tail -f `ls -t ~/.forever/*.log | grep -v '^d' | head -n1`
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
That was very quick! Not Sunday yet
Update:- Don't think its worked. It failed on grabbing curtains.
Update 2:- Changed Curtains to a light switch and Homebridge passed it and then failed when it got to the Kitchen Blind.
Update:- Don't think its worked. It failed on grabbing curtains.
Update 2:- Changed Curtains to a light switch and Homebridge passed it and then failed when it got to the Kitchen Blind.
Code: Select all
[4/2/2016, 3:56:44 PM] [eDomoticz] Initializing platform accessory 'Curtains'...
/usr/local/lib/node_modules/homebridge-edomoticz/index.js:1111
blindService.getCharacteristic(Characteristic.StatePosition).on('get', this.getBlindPStatus.bind(this));
^
TypeError: Cannot read property 'on' of undefined
at Object.eDomoticzAccessory.getServices (/usr/local/lib/node_modules/homebridge-edomoticz/index.js:1111:75)
at Server._createAccessory (/usr/local/lib/node_modules/homebridge/lib/server.js:357:36)
at Server.<anonymous> (/usr/local/lib/node_modules/homebridge/lib/server.js:343:32)
at /usr/local/lib/node_modules/homebridge/node_modules/hap-nodejs/lib/util/once.js:15:19
at callbackLater (/usr/local/lib/node_modules/homebridge-edomoticz/index.js:366:37)
at Object.<anonymous> (/usr/local/lib/node_modules/homebridge-edomoticz/index.js:392:17)
at Request.self.callback (/usr/local/lib/node_modules/homebridge-edomoticz/node_modules/request/request.js:198:22)
at emitTwo (events.js:87:13)
at Request.emit (events.js:172:7)
at Request.<anonymous> (/usr/local/lib/node_modules/homebridge-edomoticz/node_modules/request/request.js:1082:10)
at emitOne (events.js:82:20)
at Request.emit (events.js:169:7)
at IncomingMessage.<anonymous> (/usr/local/lib/node_modules/homebridge-edomoticz/node_modules/request/request.js:1009:12)
at emitNone (events.js:72:20)
at IncomingMessage.emit (events.js:166:7)
at endReadableNT (_stream_readable.js:893:12)
at doNTCallback2 (node.js:429:9)
at process._tickCallback (node.js:343:17)
pi@raspberrypi ~ $
- 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
Oops - that should’ve been ...not StatePosition... (fixed)
Update again and retry...!
Code: Select all
blindService.getCharacteristic(Characteristic.PositionState)
Update again and retry...!
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
Its now loading hombridge but you can't open or close them using Siri. Says It can't find them. Also you can only do it via percentage in Eve, No open or close buttons. Whenever you ask siri to open the curtains or open the curtains in the living room it says it can't find any devices at this time. Hmm
I have to be call the curtains blinds to activate them. They are also the wrong way round. Open closes them and Close opens them. The Kitchen and Utility blinds do not respond.
Sorry to be a pain but I guess its hard as you can't test them. When I ask Siri to close all blinds it says there are no shades. If no-one objects would it be possible to drop support and go back to how they were before. I think its going to be more effort on your part than its worth. I just set scenes for close/open curtains, Kitchen & Utility blinds and it worked fine. I thought open/close buttons in eve and being able to say close all blinds etc would be the finishing touches but I don't think it will work.
Thanks
I have to be call the curtains blinds to activate them. They are also the wrong way round. Open closes them and Close opens them. The Kitchen and Utility blinds do not respond.
Sorry to be a pain but I guess its hard as you can't test them. When I ask Siri to close all blinds it says there are no shades. If no-one objects would it be possible to drop support and go back to how they were before. I think its going to be more effort on your part than its worth. I just set scenes for close/open curtains, Kitchen & Utility blinds and it worked fine. I thought open/close buttons in eve and being able to say close all blinds etc would be the finishing touches but I don't think it will work.
Thanks
- 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
It’ll work given time - I’m building my own blind motor & controller at the mo, so once that’s finished I’ll get it sorted. In meantime, changes have now been reverted in v1.31 - just update again.
And yeah, reading up, it appears Siri support for the WindowCovering service (which was introduced in iOS9) is patchy at best, and does only respond to instructions addressing “blinds”... fixing the open/closed being wrong way round is simple enough. Service is designed to deal with % of window covered. i.e.: Set living room blind to 30% would roll a roller blind down enough to cover 30% of the window, therefore blind closed = 100%. I set the plugin up for yours so that any % above 50 would cause curtains to close, and any % below 50 would cause to open. Downside of the proper HomeKit service types is they have to be used how Apple intended them... and Custom service types are exempt from Siri comms as far as Im aware.
And yeah, reading up, it appears Siri support for the WindowCovering service (which was introduced in iOS9) is patchy at best, and does only respond to instructions addressing “blinds”... fixing the open/closed being wrong way round is simple enough. Service is designed to deal with % of window covered. i.e.: Set living room blind to 30% would roll a roller blind down enough to cover 30% of the window, therefore blind closed = 100%. I set the plugin up for yours so that any % above 50 would cause curtains to close, and any % below 50 would cause to open. Downside of the proper HomeKit service types is they have to be used how Apple intended them... and Custom service types are exempt from Siri comms as far as Im aware.
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
Ah fair enough, thanks for reverting back. I'll help by testing once your ready to do it again. Thanks again!
Sent from my iPhone using Tapatalk
Sent from my iPhone using Tapatalk
-
- Posts: 278
- Joined: Sunday 14 December 2014 12:28
- Target OS: Raspberry Pi / ODroid
- Domoticz version: V4.11375
- Contact:
Re: eDomoticz Homebridge-Plugin
Is it correct to say that siri doesn't tell me the temperature of the living room when I ask?
- 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
Assuming you've added temp sensor to Living Room in your HomeKit app, s'just down to how you ask...
"Hey Siri, how warm is it in the living room?"
"Hey Siri, how warm is it in the living room?"
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
Having a little issues with the actual homebridge at the mo. I have tried to use the forever command. Whenever I try and run "/etc/init.d/homebridge.sh start" I get
bash: /usr/bin/forever: No such file or directory
I have tried
ln -s /usr/bin/nodejs /usr/bin/node
But no help.
Any ideas.
Cheers
bash: /usr/bin/forever: No such file or directory
I have tried
ln -s /usr/bin/nodejs /usr/bin/node
But no help.
Any ideas.
Cheers
- 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
you need to work out where homebridge is installed on your system.
Normally on a clean system following instructions in first post, this is /usr/local/lib/node_modules/homebridge/bin/homebridge
To find it on yours...
Then substitute /usr/local/lib/node_modules/homebridge/bin/homebridge for your install location in /etc/init.d/homebridge.sh
Normally on a clean system following instructions in first post, this is /usr/local/lib/node_modules/homebridge/bin/homebridge
To find it on yours...
Code: Select all
sudo find / -name homebridge
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
As ever thank you for your prompt reply. I think I have made a mess of installing homebridge as I did it along time ago. Wonder if I can uninstall some of it somehow. I have ran your command and got this back. No wonder I'm having probs lol.
I'm a little confused what to substitute where? Would this be in the forever script?
Code: Select all
pi@raspberrypi ~ $ sudo find / -name homebridge
/root/.npm/homebridge
/root/.npm/registry.npmjs.org/homebridge
/home/pi/.npm/homebridge
/usr/local/bin/homebridge
/usr/local/lib/node_modules/homebridge
/usr/local/lib/node_modules/homebridge/bin/homebridge
Who is online
Users browsing this forum: No registered users and 1 guest