Page 9 of 86

Re: eDomoticz Homebridge-Plugin

Posted: Wednesday 02 March 2016 19:14
by Marci
Have just checked everything over with v3.4834 - update via the webui worked fine, Domoticz comes back up cleanly, all plugin functions work fine. Safe to do an upgrade-in-place!

Re: eDomoticz Homebridge-Plugin

Posted: Wednesday 02 March 2016 19:18
by deejc
I use beta anyway, although the past few days have seen my zwave stuff misbehaving quite badly. I have bitten the bullet and ordered a Vera plus as I like the Vera gui and its stability


Sent from my iPhone using Tapatalk

Re: eDomoticz Homebridge-Plugin

Posted: Wednesday 02 March 2016 19:22
by Marci
Ah you’ll be moving over to @DamianXD’s homebridge-vera plugin then I presume... https://www.npmjs.com/package/homebridge-vera

Re: eDomoticz Homebridge-Plugin

Posted: Wednesday 02 March 2016 19:22
by deejc
Yep, hopefully he is as diligent and helpful as you


Sent from my iPhone using Tapatalk

Re: eDomoticz Homebridge-Plugin

Posted: Wednesday 02 March 2016 19:28
by Marci
You can get an idea of the device support from https://github.com/damianxd/homebridge- ... ns.js#L106

eDomoticz Homebridge-Plugin

Posted: Wednesday 02 March 2016 19:33
by deejc
Seems a bit lighter than yours but my Thermo is Hardware HomeKit so don't need that and my other stuff is mainly switches lights and temps


Sent from my iPhone using Tapatalk

Re: eDomoticz Homebridge-Plugin

Posted: Friday 04 March 2016 14:52
by bink
Nice plugin! Set it up today and am totally impressed with it! Just a small issue I run into. I have my evohome system connected to domoticz. Setting the temperature through siri/Eve works but as soon as I touch the override timer button homekit crashes (see below loging-info). Also don't understand how the general "evotouch" device is working. It seems I can change it's temp in e.g Eve but that command is not recognized. Changing the Mode (currently Heating) to anything else (off/heat/cool/auto) does not seem to trigger anything.

Code: Select all

[Domoticz] Setting thermostat SetPoint to 21
[Domoticz] Achterkamer sent command succesfully
Loaded plugin: homebridge-edomoticz
Registering accessory 'homebridge-edomoticz.eDomoticz'
Registering platform 'homebridge-edomoticz.eDomoticz'
---
Loaded config.json with 0 accessories and 1 platforms.
---
Loading 1 platforms...
[Domoticz] Initializing eDomoticz platform...
[Domoticz] Fetching Domoticz lights and switches...
Loading 0 accessories...
[Domoticz] Initializing platform accessory 'Achterkamer'...
[Domoticz] Initializing platform accessory 'Alexander'...
[Domoticz] Initializing platform accessory 'Circle afzuiger switch'...
[Domoticz] Initializing platform accessory 'Eettafel'...
[Domoticz] Initializing platform accessory 'EvoTouch Colour'...
[Domoticz] Initializing platform accessory 'Hue Gang'...
[Domoticz] Initializing platform accessory 'P1 Electricity'...
[Domoticz] Initializing platform accessory 'Voorkamer'...
Scan this code with your HomeKit App on your iOS device to pair with Homebridge:

....
[Domoticz] Static Data for EvoTouch Colour: 1
[Domoticz] Setting thermostat SetPoint to 10
[Domoticz] There was a problem sending command toEvoTouch Colour
[Domoticz] undefined
[Domoticz] Setting thermostat SetPoint to 10.5556
[Domoticz] There was a problem sending command toEvoTouch Colour
[Domoticz] undefined

Re: eDomoticz Homebridge-Plugin

Posted: Friday 04 March 2016 21:03
by Marci
Duly noted... the guy who originally asked for EvoHome support never fed back on it to let me know what worked and what didn’t (cos I don’t have one, so it’s rather tricky!), so ta!! Have tagged it onto the end of the open issue for it over on the repo - will hopefully look at it this weekend.

See: https://github.com/PatchworkBoy/homebri ... /issues/13

Could you get it’s JSON output (destructions in original post) and add it into the github log above?

Re: eDomoticz Homebridge-Plugin

Posted: Saturday 05 March 2016 19:23
by bink
Thanks for looking into this. Not exactly sure what you meant with the last comment. I've included the json description of the evohome control and from one of the zones. Is that what you meant?

Code: Select all

{
   "ActTime" : 1457201936,
   "ServerTime" : "2016-03-05 19:18:56",
   "Sunrise" : "07:18",
   "Sunset" : "18:27",
   "result" : [
      {
         "AddjMulti" : 1.0,
         "AddjMulti2" : 1.0,
         "AddjValue" : 0.0,
         "AddjValue2" : 0.0,
         "BatteryLevel" : 255,
         "CustomImage" : 0,
         "Data" : "Auto",
         "Description" : "",
         "Favorite" : 0,
         "HardwareID" : 1,
         "HardwareName" : "HGI80",
         "HardwareType" : "Evohome USB (for HGI/S80)",
         "HardwareTypeVal" : 39,
         "HaveDimmer" : false,
         "HaveGroupCmd" : false,
         "HaveTimeout" : false,
         "ID" : "4be9a",
         "LastUpdate" : "2016-03-04 16:36:02",
         "MaxDimLevel" : 0,
         "Name" : "EvoTouch Colour",
         "Notifications" : "false",
         "PlanID" : "2",
         "PlanIDs" : [ 2 ],
         "Protected" : false,
         "ShowNotifications" : true,
         "SignalLevel" : "-",
         "Status" : "Auto",
         "StrParam1" : "",
         "StrParam2" : "",
         "SubType" : "Evohome",
         "SwitchType" : "evohome",
         "SwitchTypeVal" : 0,
         "Timers" : "false",
         "Type" : "Heating",
         "TypeImg" : "override_mini",
         "Unit" : 0,
         "Used" : 1,
         "XOffset" : "0",
         "YOffset" : "0",
         "idx" : "1"
      }
   ],
   "status" : "OK",
   "title" : "Devices"
}
{
   "ActTime" : 1457202001,
   "ServerTime" : "2016-03-05 19:20:01",
   "Sunrise" : "07:18",
   "Sunset" : "18:27",
   "result" : [
      {
         "AddjMulti" : 1.0,
         "AddjMulti2" : 1.0,
         "AddjValue" : 0.0,
         "AddjValue2" : 0.0,
         "BatteryLevel" : 255,
         "CustomImage" : 0,
         "Data" : "21.8 C, (21.0 C), Auto",
         "Description" : "",
         "Favorite" : 0,
         "HardwareID" : 1,
         "HardwareName" : "HGI80",
         "HardwareType" : "Evohome USB (for HGI/S80)",
         "HardwareTypeVal" : 39,
         "HaveTimeout" : false,
         "ID" : "",
         "LastUpdate" : "2016-03-05 19:19:24",
         "Name" : "Voorkamer",
         "Notifications" : "false",
         "PlanID" : "2",
         "PlanIDs" : [ 2 ],
         "Protected" : false,
         "SetPoint" : 21.0,
         "ShowNotifications" : true,
         "SignalLevel" : "-",
         "Status" : "Auto",
         "SubType" : "Zone",
         "Temp" : 21.80,
         "Timers" : "false",
         "Type" : "Heating",
         "TypeImg" : "override_mini",
         "Unit" : 1,
         "Used" : 1,
         "XOffset" : "0",
         "YOffset" : "0",
         "idx" : "4"
      }
   ],
   "status" : "OK",
   "title" : "Devices"
}

Re: eDomoticz Homebridge-Plugin

Posted: Saturday 05 March 2016 19:29
by Marci
Yep, perfect. The EvoHome support was written for EvoHome-via-script rather than EvoHome-USB but leave it with me - I'll get something working for it!

Re: eDomoticz Homebridge-Plugin

Posted: Sunday 06 March 2016 0:53
by boudicca
thanks marci, great job today. all working perfectly under Jessie under the RPI3, already got Siri controlling the lights and also controlling via a dummy switch my Harmony Hub and the AV/Tv/and Sat box:)....got to say its so cool. Hey Siri, Turn on "the TV". :)

Re: eDomoticz Homebridge-Plugin

Posted: Tuesday 08 March 2016 8:58
by sbisbilo
Hi,

I managed to put eDomoticz on a Raspi with Domoticz V3.4834. I'm using Eve on my iPhone and my iPad it's working perfectly, thanks to you Marci :)
But I've got a problem : I'd like to use another iPhone (my brother's) but Eve can't see Homebrige... If I change the username and the port in the config.json file it's working but of course my iPhone and my iPad don't.

Did somebody have this problem ?

Hope that is clear with my english/french language :p

Thanks

Sylvain

eDomoticz Homebridge-Plugin

Posted: Tuesday 08 March 2016 18:55
by Marci
Just invite your brother's appleid via Settings > HomeKit from one of your devices. That bridge is already 'owned' by your appleid.

HomeKit apps on his devices should then automatically get the accessories list.

Nb: iCloud Drive needs to be enabled on all devices.

Re: eDomoticz Homebridge-Plugin

Posted: Tuesday 08 March 2016 22:41
by boudicca
Done a ikle write up on my wordpress for everyone.

https://mypocketfluff.wordpress.com/201 ... n-bbc-one/

Re: eDomoticz Homebridge-Plugin

Posted: Wednesday 09 March 2016 10:18
by sbisbilo
Thanks Marci I'm gonna try this :)
It's working !!! Yeah so cool !
Marci wrote:Just invite your brother's appleid via Settings > HomeKit from one of your devices. That bridge is already 'owned' by your appleid.

HomeKit apps on his devices should then automatically get the accessories list.

Nb: iCloud Drive needs to be enabled on all devices.

Re: eDomoticz Homebridge-Plugin

Posted: Sunday 13 March 2016 9:31
by bink
Thanks for looking at the issue. Saw on the other thread you suggested to update the homekit plugin to solve the crash problem with Evohome. 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). Included the log of homekit when trying to do the temporary update.

Code: Select all

[Domoticz] Setting thermostat SetPoint to 19.5
[Domoticz] Achterkamer sent command succesfully
[Domoticz] Setting thermostat SetPoint to 20
[Domoticz] Achterkamer sent command succesfully
[Domoticz] Setting thermostat SetPoint to 20, mode to TemporaryOverride
[Domoticz] There was a problem sending command toAchterkamer
[Domoticz] undefined
I did program a button to execute a script when going to bed early to turn down the heating. It executes a similar action to what this is trying. Maybe the syntax will give you a pointer? the url I use is

/usr/bin/curl -s -i -H "Accept: application/json" "http://$DOMOTICZ_SERVER/json.htm?type=setused&idx=4&setpoint=15.0&mode=TemporaryOverride&until="$DATE"T00:30:00Z&used=true"

with $DATE being:
DATE=`date --date="+1 day" +%Y-%m-%d`

Re: eDomoticz Homebridge-Plugin

Posted: Sunday 13 March 2016 10:42
by Marci
Cool - ta. Still working on it bit-by-bit...!

Re: eDomoticz Homebridge-Plugin

Posted: Saturday 19 March 2016 21:26
by sion
Hi guys,
apologies if im being a idiot and have missed something, but im struggling to get this off the ground :(

I had been playing with the original homebridge that came on the SD card that i insalled last november.
I couldnt get it workign properly, and as i was waiting to update domoticz anyway, i backed up the database, and downloaded and installed the latest SD image.

It now seems different to before, and i cant get anything going.
Even following the wiki to configure homebrige doesnt work.

After the fresh install, i no longer have a homebridge directory, just .homebridge -- whick only has the config file ,and the persist folder.

Im not sure if i need to be insalling homebridge, or if its already there, and also if i still need to install the edomoticz plugin or if thats already there...

Can someone point me in the right direction as to what first steps should be when starting with the latest SD image?

Many thanks,
S.

Re: eDomoticz Homebridge-Plugin

Posted: Sunday 20 March 2016 1:33
by sion
ok....
was being more of an idiot than i thought..
i just needed to boot up and type "homebridge" and everything worked.. ;)
S.

Re: eDomoticz Homebridge-Plugin

Posted: Sunday 20 March 2016 22:15
by pvm
Nice, thanks for the great description and tooling. One minor thing in the opening post:

Code: Select all

sudo curl -sL https://deb.nodesource.com/setup_0.12 | bash -
should (in my case?) be

Code: Select all

sudo curl -sL https://deb.nodesource.com/setup_0.12 | sudo -E bash -