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 »

Had an idea.. a crazy idea and one I don't think is possible as I don't think there is an API for this on either domoticz or HomeKit side. If we could edit all our devices into rooms in domoticz then these rooms be put into rooms in HomeKit. Only thought of it as quite often we delete persist/accessory folders and have to start fresh.

Could maybe enter the name of rooms via config file as a variable but I don't think any HomeKit app could auto sort them for you.. anyways, this MQTT stuff is fast :-) Been super reliable other than not liking my Squeezebox's and my power consumption reporting 14,175.7kWh rather than 14.175kWh or 14,175.7 Wh lol.

But very impressed.. very minimal lag. Top job guys.
User avatar
Marci
Posts: 532
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 »

Not possible - I investigated this way back with Khaos (hap-nodejs) - s'just plain not-doable via any method.

Power consumption units may already be fixed - do a sudo git pull origin in the homeBridge-edomoticz folder & restart homeBridge n' let me know.
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 »

Done and no different.

And thats a shame! Would have been handy - didn't think I would be the only one who thought of that.
User avatar
deejc
Posts: 168
Joined: Tuesday 22 September 2015 18:50
Target OS: Raspberry Pi / ODroid
Domoticz version: 3.5641
Location: UK
Contact:

Re: homebridge-edomoticz Plugin

Post by deejc »

Marci wrote: Power consumption units may already be fixed - do a sudo git pull origin in the homeBridge-edomoticz folder & restart homeBridge n' let me know.
updated and still the "Today" item for total daily consumption on the you less reflects the "Current Consumption" item
Domoticz 3.5641 on RPI (Raspbian GNU/Linux 8)
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 »

This is one of the radios that have not worked since the MQTT integration.

Code: Select all

{
   "ActTime" : 1472471791,
   "ServerTime" : "2016-08-29 12:56:31",
   "Sunrise" : "06:10",
   "Sunset" : "19:54",
   "result" : [
      {
         "AddjMulti" : 1.0,
         "AddjMulti2" : 1.0,
         "AddjValue" : 0.0,
         "AddjValue2" : 0.0,
         "BatteryLevel" : 255,
         "CustomImage" : 0,
         "Data" : "",
         "Description" : "",
         "Favorite" : 0,
         "HardwareID" : 6,
         "HardwareName" : "Raspberry Pi",
         "HardwareType" : "Logitech Media Server",
         "HardwareTypeVal" : 60,
         "HaveDimmer" : true,
         "HaveGroupCmd" : true,
         "HaveTimeout" : false,
         "ID" : "0000002",
         "Image" : "Light",
         "IsSubDevice" : false,
         "LastUpdate" : "2016-08-29 12:39:40",
         "Level" : 0,
         "LevelInt" : 0,
         "MaxDimLevel" : 15,
         "Name" : "Kitchen Radio",
         "Notifications" : "false",
         "PlanID" : "4",
         "PlanIDs" : [ 4 ],
         "Protected" : false,
         "ShowNotifications" : true,
         "SignalLevel" : "-",
         "Status" : "Off",
         "StrParam1" : "",
         "StrParam2" : "",
         "SubType" : "AC",
         "SwitchType" : "Media Player",
         "SwitchTypeVal" : 17,
         "Timers" : "false",
         "Type" : "Lighting 2",
         "TypeImg" : "LogitechMediaServer",
         "Unit" : 1,
         "Used" : 1,
         "UsedByCamera" : false,
         "XOffset" : "0",
         "YOffset" : "0",
         "idx" : "173"
      }
   ],
   "status" : "OK",
   "title" : "Devices"
User avatar
Marci
Posts: 532
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 »

How did it appear with previous version? (There's never been any implicit handling for switchtypeval 17, so however it did appear, if it was appropriate it was a complete fluke!)
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:

homebridge-edomoticz Plugin

Post by simon_rb »

It worked fine mate. Showed up as a normal switch. Even showed up in the native HomeKit app lol used to turn them on and off using Siri :-)
User avatar
Marci
Posts: 532
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 »

K - Media player as switch should be sorted now... still to sort: the Consumption value issue.
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:K - Media player as switch should be sorted now...
Yup! Working as expected. Thank you!



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

How can I make sure I run mqtt branch? I don't see "connected to broker" message, but my temp+hum+baro device is recognized as Evo Weather (afaik, this is only possible in mqtt branch)
User avatar
Marci
Posts: 532
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 »

Look at CHANGELOG in your homebridge-edomoticz folder. MQTT branch is v2.2.
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!
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 »

Thanks. It says 2.2. One more question: is there any way to have Water Meter to be shown as a counter and not as "contact switch"?
That would dramatically increase WAF :-)))

ps thanks for the wonderful plugin!
User avatar
Marci
Posts: 532
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 »

As per opening post, post the JSON output for the sensor to the Github Issues page and one of the team’ll take a look when they’ve got chance...
Last edited by Marci on Wednesday 31 August 2016 20:14, edited 1 time in total.
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: 532
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 »

simon_rb wrote:@simon_rb
,
deejc wrote:@deejc


...and the other energy meter users who had issues, give the repo another pull and restart and I THINK the right electric values should land in the right places.
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 »

Sorry mate, it's half working lol.

It will show the correct data when it's refreshed by pulling the screen down but then 10 - 15 secs later it reverts back.

Image

Image


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

I'm not entirely sure how HomeKit/bridge and edomoticz communicate in regards to dimmers.. I have homeasy dimmers on all my walls and they work fine in domoticz but using HomeKit I think it sends an on command as well as the percentage command.. problem is if the lights are on and an on command is sent then it will go through an auto dimming/lighting cycle waiting for you to hit power on again to stop them at a preferred brightness. Even if the percentage is sent after the power command. The slider in HomeKit up dates the dimmer on the fly rather than waiting till you have picked a level then update domoticz.. maybe that's the issue. Wouldn't want you changing it just for my dimmers if it were possible to fix. Maybe others require an on command as well as the percentage.. it just sends mine crazy and I get the wife saying.. "oh, are we having another disco in here"

Anyways, I rarely use the dimmers, was just one of them niceties lol


Sent from my iPhone using Tapatalk
User avatar
deejc
Posts: 168
Joined: Tuesday 22 September 2015 18:50
Target OS: Raspberry Pi / ODroid
Domoticz version: 3.5641
Location: UK
Contact:

Re: homebridge-edomoticz Plugin

Post by deejc »

Marci wrote: ...and the other energy meter users who had issues, give the repo another pull and restart and I THINK the right electric values should land in the right places.
i missed this as i some how managed to delete tapatalk from my phone! :?:
i'll have a look later, cheers
Domoticz 3.5641 on RPI (Raspbian GNU/Linux 8)
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 »

Marci wrote:
do a sudo git pull origin in the homeBridge-edomoticz folder
When I do this, I get the message:
fatal: Not a git repository (or any of the parent directories): .git

Any clues?
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 »

MikeF wrote:
Marci wrote:
do a sudo git pull origin in the homeBridge-edomoticz folder
When I do this, I get the message:
fatal: Not a git repository (or any of the parent directories): .git

Any clues?
Faced the same issue. Do the following:
- delete all the files* inn "homebridge-edomoticz" folder
- run "git pull origin mqtt-integration"

* files only, not .git folder!!
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 »

OK, I realised (by tracking back through this thread) that this really only applies to the MQTT branch.

I did a clean npm install of homebridge and homebridge-edomoticz instead. Good to see power consumption types recognised by Eve - it would be nice to have 'Today cost' as well, Total Cost is not very meaningful. Also, it would be good if Pressure (from BMP180 / BME280 devices) was recognised by Eve.

Marci: really great plugin, thank you! :D :D
Post Reply

Who is online

Users browsing this forum: Google [Bot] and 1 guest