homebridge-edomoticz Plugin

Moderator: leecollings

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 »

Well done guys. Can't wait to test later. Woohoo.


Sent from my iPhone using Tapatalk
User avatar
G3rard
Posts: 669
Joined: Wednesday 04 March 2015 22:15
Target OS: -
Domoticz version: No
Location: The Netherlands
Contact:

Re: homebridge-edomoticz Plugin

Post by G3rard »

Nice job! Will try this soon.
Not using Domoticz anymore
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 »

bdormael wrote:
Marci wrote:Note on upgrading to the above...

Stop homebridge, perform a...

Code: Select all

sudo git pull origin


...in the homebridge-edomoticz folder, restart homebridge.

Now in Home or Eve, head to accessories and remove the bridge from your home, then re-add it again. You’ll then have to reconfigure your rooms etc.

@Ramon - stellar job d00d... words escape me! *applause* 8-) Instantaneous response times across the board for sets, gets, siri commands. Absolutely awesome.

I can't upgrade without removing and reconfiguring everything ?
I'm curious too as just updated and it's working rather quick and haven't deleted my bridge but appears to be working.



Sent from my iPhone using Tapatalk
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 »

May be able to get away with it then... *shrug*

I had to remove and re-add.
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 »

Marci wrote:May be able to get away with it then... *shrug*

I had to remove and re-add.
Mines working fine. If it starts to misbehave I shall remove all and re add.


Sent from my iPhone using Tapatalk
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, I didn't do a complete re-install either. Simply updated through git pull and hey presto!
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 »

It's working great mate. Even the Watch app works quicker. Though still annoyingly slow. Come on Apple sort it out. Lol.


Sent from my iPhone using Tapatalk
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 »

Haha cool.

(@ergofreiberg)
I have also implemented Domoticz Internal Security Panel support (mqtt-integration branch). The only thing left to do here is to build the sending of arm and disarm commands.

I have not built this for now since I'm not sure on how to save the passcode. We'd need a passcode for arming and disarming, and saving the passcode in .homebridge/config is not a good idea..
We'd want something like a control panel popping up on the HomeKit(/ Eve) app where the user can input their passcode everytime a state is being changed.

Not sure how to do this for now. Anyhow, Security panel status can be accessed through HomeKit now, and you'll receive a push notification everytime the alarm status changes. (immediately too, MQTT!)
ergofreiberg
Posts: 8
Joined: Friday 06 May 2016 10:24
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: homebridge-edomoticz Plugin

Post by ergofreiberg »

Awsome.
MikeF
Posts: 350
Joined: Sunday 19 April 2015 0:36
Target OS: Raspberry Pi / ODroid
Domoticz version: V2022.2
Location: UK
Contact:

Re: homebridge-edomoticz Plugin

Post by MikeF »

Hi @Marci / @TheRamon,

I've had homebridge-edomoticz running on my RPi (Jessie) for a while now, and Eve / Home and the Apple iOS 10 Home app work happily with it - many thanks, Marci! :D

I've been following the posts in this thread about the MQTT branch. I don't use MQTT, so I'm not clear what the benefits are of this version - can you enlighten me, please? and if I want to use it, where would I download it from? (I realise I would need to remove all and re-add).
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 »

The whole point of MQTT is that changes you make in your HomeKit app get sent immediately. Also, when switching a value in Domoticz itself, the HomeKit app gets updated immediately. Works really nice.

You cannot update through npm yet, I think the mqtt-integration branch will be merged with the master branch soon. After that, you can simply update using npm. ($ npm update)
You could also remove your homebridge-edomoticz folder for now and download the one from GitHub. (git checkout mqtt-integration https://github.com/PatchworkBoy/homebri ... moticz.git)

@Marci: Any clue when the master branch gets updated? So that ($ npm update) works again?
madrian
Posts: 231
Joined: Saturday 27 August 2016 1:18
Target OS: -
Domoticz version:
Contact:

Re: homebridge-edomoticz Plugin

Post by madrian »

Guys, it is possible to change channel on my sat-box (Dreambox)?

For this I created a new Selector switch, selector style is Select menu.

[ChannelSwitch]

Level0 "Favourite Channel 1"
Level10 "Favourite Channel 2"
Level20 "Favourite Channel 3"
Level30 "Favourite Channel 4"
...

I tried to say to Siri: Set ChannelSwitch to 0, Set ChannelSwitch to Level 0, but it doesn't seem to be work.

Is there any chance to get this work? ;)
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 »

Nope. Sorry. There's no selector switch support within HomeKit.

I've created individual push-on buttons in Domoticz for all my channels and then put these in their own room in both Domoticz and HomeKit to keep them tidy.

Each switch named as per the channel...

This means "Hey Siri, switch Sky1 on" works... and is the only real way to do it.
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 »

TheRamon wrote: @Marci: Any clue when the master branch gets updated? So that ($ npm update) works again?
Away from laptop at mo, but feel free to merge to master now if you want d00d... I can push the npm change through tomorrow
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!
madrian
Posts: 231
Joined: Saturday 27 August 2016 1:18
Target OS: -
Domoticz version:
Contact:

Re: homebridge-edomoticz Plugin

Post by madrian »

Thanks Marci!
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 »

TheRamon wrote:Oh wow! Have just fixed the issue with Authorization, the credentials were not sent properly.

This bug is fixed on the mqtt-integration branch! Be sure to update to that one.

I'll better let Marci update the master branch whenever he thinks that might be a good move. I have kind of lost track of the master branch. :oops: :D
Hello TheRamon,

Something has been fixed in the mqtt branch, but there is still a bug somewhere in the authentication part :

Homebridge can ben launched without issue, I can add it in the home app, but when trying to refresh the devices state, here is what I see in homebridge's logs :

Code: Select all

2016-10-24T19:57:19.710314064Z Mon, 24 Oct 2016 19:57:19 GMT Accessory [Domoticz] Got Characteristic "Current Heating Cooling State" value: 1
2016-10-24T19:57:19.935621384Z Mon, 24 Oct 2016 19:57:19 GMT EventedHTTPServer [::ffff:192.168.50.90] New connection from client
2016-10-24T19:57:19.950436010Z Mon, 24 Oct 2016 19:57:19 GMT EventedHTTPServer [::ffff:192.168.50.90] HTTP server listening on port 36324
2016-10-24T19:57:20.111620947Z [10/24/2016, 9:57:20 PM] [eDomoticz] There was a problem connecting to Domoticz. (HTTP Status 401)
2016-10-24T19:57:20.112132934Z - null
And at the end, status of devices are not updated on the iOS side.
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 »

Hi Mac,

Thank you. I'll look into it asap!
rwijbenga
Posts: 20
Joined: Sunday 25 September 2016 22:59
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: homebridge-edomoticz Plugin

Post by rwijbenga »

I have switched to the MQTT branch and MQTT works super!

The only thing not working anymore with this branch is changing a color of my MiLight's.

It works in Domoticz, ad it did work in homekit, but not anymore... I think it has to do with these commits:

[Experimental] Changed RGBW Dimmers to use &hex= instead of &hue=................

I am using MiLights with the RFLink hardware to control them.

Any idea's or do you guys need more info?
Artic1980
Posts: 23
Joined: Monday 25 April 2016 17:37
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: homebridge-edomoticz Plugin

Post by Artic1980 »

but this guide is correct?

From a clean install of Jessie on Raspberry Pi 3, booted up and connected to WLAN...
sudo apt-get update
sudo apt-get upgrade
sudo reboot
sudo rpi-update
sudo reboot
mkdir ~/domoticz
cd ~/domoticz
wget http://www.domoticz.com/releases/releas ... armv7l.tgz
tar xvfz domoticz_linux_armv7l.tgz
rm domoticz_linux_armv7l.tgz
sudo cp domoticz.sh /etc/init.d
sudo chmod +x /etc/init.d/domoticz.sh
sudo update-rc.d domoticz.sh defaults
cd ~/domoticz
sudo ./domoticz
[ctrl-c]
sudo service domoticz.sh start
sudo rm -rf /usr/local/{lib/node{,/.npm,_modules},bin,share/man}/{npm*,node*,man1/node*} /var/db/receipts/org.nodejs.*
hash -r
sudo su -c 'echo "deb https://deb.nodesource.com/armv6l-node/ weezy main" >> /etc/apt/sources.list'
sudo curl -sL https://deb.nodesource.com/setup_0.12 |
sudo bash -
sudo apt-get install nodejs
sudo apt-get install libavahi-compat-libdnssd-dev
sudo apt-get install git
sudo npm install -g homebridge
sudo npm install -g forever
sudo npm install -g homebridge-edomoticz
mkdir ~/.homebridge
pico ~/.homebridge/config.json
[refer to https://github.com/PatchworkBoy/homebridge-eDomoticz]
forever start /usr/local/lib/node_modules/homebridge/bin/homebridge
[if doesn't exist, probably: forever start /usr/bin/homebridge]
tail -f `ls -t ~/.forever/*.log | grep -v '^d' | head -n1`
[ctrl-c]
sudo nano /etc/init.d/homebridge.sh
[refer to viewtopic.php?f=36&t=10272#p72791]
sudo chmod +x homebridge.sh &&
sudo update-rc.d homebridge.sh defaults
sudo reboot
[done]
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 »

Marci wrote:Away from laptop at mo, but feel free to merge to master now if you want d00d... I can push the npm change through tomorrow
Totally missed this since it was on the last page. I'll have a look when I can!
MacJL wrote: Hello TheRamon,
Something has been fixed in the mqtt branch, but there is still a bug somewhere in the authentication part :
...
And at the end, status of devices are not updated on the iOS side.
Whoops! There was still one small bug with authorization going on. I have just fixed this on the MQTT branch.
rwijbenga wrote:I have switched to the MQTT branch and MQTT works super!
The only thing not working anymore with this branch is changing a color of my MiLight's.
It works in Domoticz, ad it did work in homekit, but not anymore... I think it has to do with these commits:
[Experimental] Changed RGBW Dimmers to use &hex= instead of &hue=................
I am using MiLights with the RFLink hardware to control them.
Any idea's or do you guys need more info?
Thanks! Yeah, almost right. The &hex should work, but still no saturation. The issue you're facing is that MQTT does not support the "set colour" call. I have fixed this issue on the MQTT branch.
Switching colours now falls back on HTTP. So might take a liiiiitle longer but hey, at least it works.
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest