Harmony Hub plugin

Posted on
Mon May 30, 2016 2:35 pm
Woetjes offline
Posts: 117
Joined: Apr 04, 2016
Location: Belgium

Re: Harmony Hub plugin - BETA

FlyingDiver wrote:
Update to v0.2.1, see if that fixes it.


Awesome, that did the trick! :) Thanks a lot!

Posted on
Mon May 30, 2016 2:41 pm
colinpartridge offline
Posts: 374
Joined: Jan 13, 2014
Location: London, UK

Re: Harmony Hub plugin - BETA

FlyingDiver wrote:
colinpartridge wrote:
FlyingDiver wrote:
Search the forums here, there's some other thread on installing Python 2.6 packages.

I'm in the middle of making dinner and can't look for it right now.


No Problem, just wanted to check. Installed pip 2.6 then sleekxmpp then requests module.

Looking forward to playing with this.

Colin


I don't use the requests module, but no harm installing it. Other plugins do.


Thats odd then because this showed up in the Events log
Code: Select all
 Starting plugin "Harmony Hub 0.2.0" (pid 85404)
  Harmony Hub Error               Error in plugin execution InitializeMain:

Traceback (most recent call last):
  File "plugin.py", line 13, in <module>
  File "/Library/Application Support/Perceptive Automation/Indigo 6/Plugins/HarmonyHub.indigoPlugin/Contents/Server Plugin/harmony/auth.py", line 10, in <module>
ImportError: No module named requests

Posted on
Mon May 30, 2016 2:43 pm
FlyingDiver offline
User avatar
Posts: 7228
Joined: Jun 07, 2014
Location: Southwest Florida, USA

Re: Harmony Hub plugin - BETA

colinpartridge wrote:
Thats odd then because this showed up in the Events log
Code: Select all
 Starting plugin "Harmony Hub 0.2.0" (pid 85404)
  Harmony Hub Error               Error in plugin execution InitializeMain:

Traceback (most recent call last):
  File "plugin.py", line 13, in <module>
  File "/Library/Application Support/Perceptive Automation/Indigo 6/Plugins/HarmonyHub.indigoPlugin/Contents/Server Plugin/harmony/auth.py", line 10, in <module>
ImportError: No module named requests


Oops. I forgot the harmony library does to login to the Logitech servers. Scratch what I said about not needing it.

joe (aka FlyingDiver)
my plugins: http://forums.indigodomo.com/viewforum.php?f=177

Posted on
Tue May 31, 2016 1:27 am
colinpartridge offline
Posts: 374
Joined: Jan 13, 2014
Location: London, UK

Re: Harmony Hub plugin - BETA

Excellent work FlyingDiver
I have Multiple Harmony hubs and I have set up 4 devices successfully. All 4 have custom states which reflect the current activity state of each hub. However when I try to change an Activity for any hub apart from the first one I created the activity is not acted on. Also when I try to dump the formatted config to the log for the relevant hub I am only able to do it successfully for the first hub device created, Getting the following error message in the Log.
Code: Select all
Harmony Hub Error               Error in plugin execution UiValidate:

Traceback (most recent call last):
  File "plugin.py", line 378, in parseConfig
KeyError: ('isAVActivity',)


Any thoughts?

Colin

Posted on
Tue May 31, 2016 4:55 am
FlyingDiver offline
User avatar
Posts: 7228
Joined: Jun 07, 2014
Location: Southwest Florida, USA

Re: Harmony Hub plugin - BETA

Please dump the raw config for each hub into the log, save them into different files, zip them up and email them to me. Email is joe@<forum name>.com.

You must have some devices or activities unlike any of mine with different config data. I need to fix the parser to handle them properly.

joe (aka FlyingDiver)
my plugins: http://forums.indigodomo.com/viewforum.php?f=177

Posted on
Tue May 31, 2016 5:14 am
haavarda offline
User avatar
Posts: 702
Joined: Aug 18, 2012
Location: Norway

Re: Harmony Hub plugin - BETA

FlyingDiver wrote:
I actually do have code to force the state change when the plugin starts an activity, but it wasn't working right. I think I have that fixed now and it'll be in the next release.


After the last update this is working good. The state is updated quickly after I run an actiongroup that changes activity. Thanks!

Håvard

Håvard

Posted on
Tue May 31, 2016 6:09 am
autolog offline
Posts: 3991
Joined: Sep 10, 2013
Location: West Sussex, UK [GMT aka UTC]

Re: Harmony Hub plugin - BETA

Hi Joe,
A bit of testing feedback :)
  • The link on the first post is still pointing at 0.2.0 and it should be 0.2.1. - discovered when the plugin encouraged me to update
  • Setting the Plugin Config 'Check for plugin update frequency (hours)' to 0 (zero) gives an error which indicates the value should be between 1 and 24.

Otherwise, seems to be working well and quickly :D

Posted on
Tue May 31, 2016 6:45 am
autolog offline
Posts: 3991
Joined: Sep 10, 2013
Location: West Sussex, UK [GMT aka UTC]

Re: Harmony Hub plugin - BETA

Hi Joe,
Another minor one - clicking on 'About Harmony Hub v0.2.1...' links to http://forums.indigodomo.com/viewtopic.php?f=177 which doesn't exist.

I think the link should go to FlyingDivers Plugins at http://forums.indigodomo.com/viewforum.php?f=177
or http://forums.indigodomo.com/viewtopic.php?f=177&t=16166 for the Harmony Hub thread. :)

Posted on
Tue May 31, 2016 7:32 am
FlyingDiver offline
User avatar
Posts: 7228
Joined: Jun 07, 2014
Location: Southwest Florida, USA

Re: Harmony Hub plugin - BETA

autolog wrote:
Hi Joe,
Another minor one - clicking on 'About Harmony Hub v0.2.1...' links to http://forums.indigodomo.com/viewtopic.php?f=177 which doesn't exist.

I think the link should go to FlyingDivers Plugins at http://forums.indigodomo.com/viewforum.php?f=177
or http://forums.indigodomo.com/viewtopic.php?f=177&t=16166 for the Harmony Hub thread. :)


Yeah, I put those in quick as placeholders. I don't think I want to link to specific threads anymore. So I either need to link to the forum or possibly create a subforum for each plugin. I'll get that fixed as soon as I decide which to do.

Other two items from previous post fixed in my working copy.

And good news, I'm getting closer to receiving the Activity changes from the hub, and possibly other status changes.

joe (aka FlyingDiver)
my plugins: http://forums.indigodomo.com/viewforum.php?f=177

Posted on
Tue May 31, 2016 12:39 pm
colinpartridge offline
Posts: 374
Joined: Jan 13, 2014
Location: London, UK

Re: Harmony Hub plugin - BETA

FlyingDiver wrote:
Please dump the raw config for each hub into the log, save them into different files, zip them up and email them to me. Email is joe@<forum name>.com.

You must have some devices or activities unlike any of mine with different config data. I need to fix the parser to handle them properly.


Standby caller it may be that my Hub firmware appears to different on the non responding units to the one that works.. Currently locked out of logitech's servers due to trying to access them with wrong password...apparently. Will check again once firmware is up to date.

Colin

Posted on
Tue May 31, 2016 2:48 pm
colinpartridge offline
Posts: 374
Joined: Jan 13, 2014
Location: London, UK

Re: Harmony Hub plugin - BETA

colinpartridge wrote:
FlyingDiver wrote:
Please dump the raw config for each hub into the log, save them into different files, zip them up and email them to me. Email is joe@<forum name>.com.

You must have some devices or activities unlike any of mine with different config data. I need to fix the parser to handle them properly.


Standby caller it may be that my Hub firmware appears to different on the non responding units to the one that works.. Currently locked out of logitech's servers due to trying to access them with wrong password...apparently. Will check again once firmware is up to date.

Colin


And I think that was the issue, my hubs hadn't been updated to the latest version of firmware. I'm now able to switch Activities..Yay! Just need to figure out what to do with this.

Posted on
Tue May 31, 2016 3:56 pm
FlyingDiver offline
User avatar
Posts: 7228
Joined: Jun 07, 2014
Location: Southwest Florida, USA

Re: Harmony Hub plugin - BETA

V0.2.2 is live now. This release eliminates the polling for Activity status as I was able to get Hub notifications to work.

Hub device states have changed! You will need to edit your Hub device to pick up the changes, and also change any triggers, etc, that used state names. I'll avoid this once we get out of beta, but for now it's needed.

You'll notice that the two existing states have changes names to more accurately describe what they're tracking. There's also two new states that track notifications from the hub about Activity changes in progress, but not yet complete. For instance, changing activities will generate notifications for both the old activity and the new one. I don't know exactly what the status numbers mean, but they're definitely progressive. Status 0 is off. I think Status 1 is something like "starting activity", Status 2 is "activity active", and Status 3 is "ending activity".

There's different messages for any Home Control activities you have defined, and I'll work on those next.

Enjoy!

PS - I'm not asking for contributions, but if anyone REALLY wants to donate, take up a collection and get me another hub+remote. My testing is limited with the one I have because DW really doesn't like me mucking with the AV system when she's watching TV. ;)

joe (aka FlyingDiver)
my plugins: http://forums.indigodomo.com/viewforum.php?f=177

Posted on
Tue May 31, 2016 7:15 pm
Japple55 offline
Posts: 224
Joined: Sep 26, 2015
Location: NE Tennessee

Re: Harmony Hub plugin - BETA

FlyingDiver wrote:
PS - I'm not asking for contributions, but if anyone REALLY wants to donate, take up a collection and get me another hub+remote. My testing is limited with the one I have because DW really doesn't like me mucking with the AV system when she's watching TV.


Joe,
I'll start it off and throw $20 into the kitty. They're $130 on Amazon Prime at the moment; anyone see them cheaper elsewhere?

[EDIT] Amazon also has the Smart Control for $80 with Prime. Correct me if I'm wrong but I think the only difference is the lack of the home automation control buttons on the remote. Would those be required/desired for your use?

How do we handle the logistics of this? Do you have a PayPal account?

Jim

Posted on
Tue May 31, 2016 8:02 pm
FlyingDiver offline
User avatar
Posts: 7228
Joined: Jun 07, 2014
Location: Southwest Florida, USA

Re: Harmony Hub plugin - BETA

Yeah, I have a Paypal account. Email is joe@<forum name>.com. Use the Friends and Family option.

I like the home control buttons, and I need those for testing. If you come up short I'll kick in the rest. Maybe get the Elite. :)

Thanks!

joe (aka FlyingDiver)
my plugins: http://forums.indigodomo.com/viewforum.php?f=177

Posted on
Wed Jun 01, 2016 1:22 am
Woetjes offline
Posts: 117
Joined: Apr 04, 2016
Location: Belgium

Re: Harmony Hub plugin - BETA

Thanks for the update Joe! Donation is done ;)

Page 4 of 13 1, 2, 3, 4, 5, 6, 7 ... 13

Who is online

Users browsing this forum: No registered users and 2 guests

cron