Page 32 of 86

Re: homebridge-edomoticz Plugin

Posted: Sunday 28 August 2016 19:52
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.

Re: homebridge-edomoticz Plugin

Posted: Sunday 28 August 2016 21:26
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.

Re: homebridge-edomoticz Plugin

Posted: Sunday 28 August 2016 21:45
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.

Re: homebridge-edomoticz Plugin

Posted: Monday 29 August 2016 10:03
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

Re: homebridge-edomoticz Plugin

Posted: Monday 29 August 2016 14:02
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"

Re: homebridge-edomoticz Plugin

Posted: Tuesday 30 August 2016 20:45
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!)

homebridge-edomoticz Plugin

Posted: Tuesday 30 August 2016 20:47
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 :-)

Re: homebridge-edomoticz Plugin

Posted: Wednesday 31 August 2016 9:24
by Marci
K - Media player as switch should be sorted now... still to sort: the Consumption value issue.

Re: homebridge-edomoticz Plugin

Posted: Wednesday 31 August 2016 11:14
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

Re: homebridge-edomoticz Plugin

Posted: Wednesday 31 August 2016 16:31
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)

Re: homebridge-edomoticz Plugin

Posted: Wednesday 31 August 2016 18:04
by Marci
Look at CHANGELOG in your homebridge-edomoticz folder. MQTT branch is v2.2.

Re: homebridge-edomoticz Plugin

Posted: Wednesday 31 August 2016 19:21
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!

Re: homebridge-edomoticz Plugin

Posted: Wednesday 31 August 2016 20:12
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...

Re: homebridge-edomoticz Plugin

Posted: Wednesday 31 August 2016 20:13
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.

Re: homebridge-edomoticz Plugin

Posted: Wednesday 31 August 2016 20:23
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

Re: homebridge-edomoticz Plugin

Posted: Wednesday 31 August 2016 20:38
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

Re: homebridge-edomoticz Plugin

Posted: Friday 02 September 2016 12:49
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

Re: homebridge-edomoticz Plugin

Posted: Saturday 03 September 2016 19:13
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?

Re: homebridge-edomoticz Plugin

Posted: Saturday 03 September 2016 22:23
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!!

Re: homebridge-edomoticz Plugin

Posted: Sunday 04 September 2016 10:32
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