Harmony Hub plugin

Posted on
Fri Oct 14, 2016 7:47 am
jfeger offline
Posts: 84
Joined: Jan 02, 2013

Re: Harmony Hub plugin

Great plugin. I bought the Harmony Hub in hopes of using this. When I did the install I was never able to see the Hub. When I tried to sync the hub I had an empty dropdown.

When I turn on debug I see this, repeating at a quick rate:

Oct 14, 2016, 7:45:34 AM
Enabling plugin "Harmony Hub 0.2.8"
Starting plugin "Harmony Hub 0.2.8" (pid 70296)
Harmony Hub Debug Debugging enabled
Started plugin "Harmony Hub 0.2.8"
Harmony Hub Starting Harmony Hub
Harmony Hub Debug Plugin version detected: 0.2.8
Harmony Hub Debug Current version is: 0.2.8
Harmony Hub Debug Getting latest release from FlyingDiver/Indigo-Harmony...
Harmony Hub Debug GET /repos/FlyingDiver/Indigo-Harmony/releases/latest
Harmony Hub Debug HTTP 403 Forbidden
Harmony Hub Error API rate limit exceeded for 73.229.3.217. (But here's the good news: Authenticated requests get a higher rate limit. Check out the documentation for more details.)
Harmony Hub Debug No release available
Harmony Hub Debug Plugin version detected: 0.2.8
Harmony Hub Debug Current version is: 0.2.8
Harmony Hub Debug Getting latest release from FlyingDiver/Indigo-Harmony...
Harmony Hub Debug GET /repos/FlyingDiver/Indigo-Harmony/releases/latest
Harmony Hub Debug HTTP 403 Forbidden

Posted on
Fri Oct 14, 2016 7:50 am
FlyingDiver offline
User avatar
Posts: 7217
Joined: Jun 07, 2014
Location: Southwest Florida, USA

Re: Harmony Hub plugin

You need to create a Hub device. Did you do that?

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

Posted on
Sat Oct 15, 2016 4:37 pm
jfeger offline
Posts: 84
Joined: Jan 02, 2013

Re: Harmony Hub plugin

Doh! No, I will try that. Geesh. Im still in API rate limit jail, so I need to let that reset itself. Ill keep you posted.

Out of curiosity, is that in the instructions and I missed it?

Thanks,
James

Posted on
Sat Oct 15, 2016 4:42 pm
FlyingDiver offline
User avatar
Posts: 7217
Joined: Jun 07, 2014
Location: Southwest Florida, USA

Re: Harmony Hub plugin

jfeger wrote:
Doh! No, I will try that. Geesh. Im still in API rate limit jail, so I need to let that reset itself. Ill keep you posted.

Out of curiosity, is that in the instructions and I missed it?


Probably not, but I thought it was obvious. You want to control a device (the hub), you need to create a device to control. I guess I should put an error message in the log when you try to use one of the menu commands with no devices defined.

The reason you have to create a device is because you have to tell the plugin what the IP address of the hub is. There's no discovery process. And you could have more than one hub on your LAN anyway. I have two right now, and might add a third. One for each set of AV equipment (ie, each room) you want to control.

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

Posted on
Sun Oct 16, 2016 10:43 am
jfeger offline
Posts: 84
Joined: Jan 02, 2013

Re: Harmony Hub plugin

Makes sense. I am used to configuring the device information via the plugin if it is designed to control something specific. However, in this case with multiple Hub's, I totally get the process flow now. I've made a lot of progress and do have functionality working, but have noticed some interesting things in the log about the API throttling. Here is a snapshot of the start of the plugin, where it appears to discover my activities, etc....

Code: Select all
Starting plugin "Harmony Hub 0.2.8" (pid 53606)
  Harmony Hub Debug               Debugging enabled
  Started plugin "Harmony Hub 0.2.8"
  Harmony Hub                     Starting Harmony Hub
  Harmony Hub Debug               Plugin version detected: 0.2.8
  Harmony Hub Debug               Current version is: 0.2.8
  Harmony Hub Debug               Getting latest release from FlyingDiver/Indigo-Harmony...
  Harmony Hub Debug               GET /repos/FlyingDiver/Indigo-Harmony/releases/latest
  Harmony Hub Debug               HTTP 200 OK
  Harmony Hub Debug               Latest release is: 0.2.8
  Harmony Hub Debug               Called deviceStartComm(self, device): HarmonyHub (987261114)
  Harmony Hub Debug               HarmonyHub: Device Current Version = 0
  Harmony Hub Debug               HarmonyHub: Device Version is up to date
  Harmony Hub Debug               HarmonyHub: Starting harmonyHub device (987261114)
  Harmony Hub Debug               HarmonyHub: Waiting for client.uuid
  Harmony Hub Debug               HarmonyHub: Waiting for client.sessionstarted
  Harmony Hub Debug               HarmonyHub: Activity: Play Wii (21925690)
  Harmony Hub Debug               HarmonyHub: Activity: Watch DVD (21925691)
  Harmony Hub Debug               HarmonyHub: Activity: Watch TV (21925693)
  Harmony Hub Debug               HarmonyHub: Activity: AppleTV (21925694)
  Harmony Hub Debug               HarmonyHub: Activity: Play Xbox (21925689)
  Harmony Hub Debug               HarmonyHub: Activity: Listen to Radio (21925692)
  Harmony Hub Debug               HarmonyHub: current_activity_id = 21925693
  Harmony Hub Debug               Plugin version detected: 0.2.8
  Harmony Hub Debug               Current version is: 0.2.8
  Harmony Hub Debug               Getting latest release from FlyingDiver/Indigo-Harmony...
  Harmony Hub Debug               GET /repos/FlyingDiver/Indigo-Harmony/releases/latest
  Harmony Hub Debug               HTTP 200 OK


Then, I get a constant repeat of the following at a fairly rapid rate:

Code: Select all
  Harmony Hub Debug               Latest release is: 0.2.8
  Harmony Hub Debug               Plugin version detected: 0.2.8
  Harmony Hub Debug               Current version is: 0.2.8
  Harmony Hub Debug               Getting latest release from FlyingDiver/Indigo-Harmony...
  Harmony Hub Debug               GET /repos/FlyingDiver/Indigo-Harmony/releases/latest
  Harmony Hub Debug               HTTP 200 OK


Until this starts happening, again constant repeating. Ive replace my public IP with the XX.XX.XXX.XXX

Code: Select all
Harmony Hub Debug               Latest release is: 0.2.8
  Harmony Hub Debug               Plugin version detected: 0.2.8
  Harmony Hub Debug               Current version is: 0.2.8
  Harmony Hub Debug               Getting latest release from FlyingDiver/Indigo-Harmony...
  Harmony Hub Debug               GET /repos/FlyingDiver/Indigo-Harmony/releases/latest
  Harmony Hub Debug               HTTP 403 Forbidden
  Harmony Hub Error               API rate limit exceeded for XX.XX.XXX.XXX. (But here's the good news: Authenticated requests get a higher rate limit. Check out the documentation for more details.)
  Harmony Hub Debug               No release available


Im not sure of the flow, so is this throttling and rejection something Logitech/Harmony is doing, or is this somewhere else in the chain?

Thanks again for a cool app. Ive added this to a few basic action groups associated with my Echo voice commands. It makes leaving the house very nice when I can power the entertainment system down as part of a voice command.

Thanks,
James

Posted on
Sun Oct 16, 2016 11:25 am
FlyingDiver offline
User avatar
Posts: 7217
Joined: Jun 07, 2014
Location: Southwest Florida, USA

Re: Harmony Hub plugin

That appears to be GitHub throttling the the checks for new versions of the plugin. Check your plugin config and make sure there's a reasonable number for the update frequency. It's supposed to default to 24 hours, but there could be a bug.

My iMac is having issues and until it's fixed I can't even check the code very easily. Using my old MacBook right now.

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

Posted on
Sun Oct 16, 2016 11:38 am
jfeger offline
Posts: 84
Joined: Jan 02, 2013

Re: Harmony Hub plugin

FlyingDiver wrote:
That appears to be GitHub throttling the the checks for new versions of the plugin. Check your plugin config and make sure there's a reasonable number for the update frequency. It's supposed to default to 24 hours, but there could be a bug.

My iMac is having issues and until it's fixed I can't even check the code very easily. Using my old MacBook right now.


AH! Okay, so I think it *might* be a bug. I placed "24" back into the check for updates field and everything has quieted down in the log. I had set it to 0 (zero) to have it not check for updates, and that appears to be what caused it to constantly check.

Anyway, thank you for the quick reply and an awesome plugin!

Good luck with the computer situation.

Thanks,
James

Posted on
Sun Oct 16, 2016 11:47 am
FlyingDiver offline
User avatar
Posts: 7217
Joined: Jun 07, 2014
Location: Southwest Florida, USA

Re: Harmony Hub plugin

Thanks for the report. I'll take a look at that next time I'm in that code.

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

Posted on
Sat Nov 05, 2016 3:48 pm
petematheson offline
Posts: 847
Joined: Sep 14, 2014
Location: Southampton, UK

Re: Harmony Hub plugin

Hi,
I seem to be suffering issues where I need to restart the plugin to get it to report the harmony states properly. I have 2 hubs setup. Any suggestions on troubleshooting please?
Cheers


Sent from my iPhone using Tapatalk

Posted on
Sat Nov 05, 2016 4:00 pm
FlyingDiver offline
User avatar
Posts: 7217
Joined: Jun 07, 2014
Location: Southwest Florida, USA

Re: Harmony Hub plugin

When the state is out of sync, how did you change it? I mean, what sent the activity command that the plugin doesn't report?

I seem to recall thinking there was a race condition somewhere, but nailing down a sequence of events that doesn't get reported properly would help.

Also, does using the "Sync Hub" action fix it, or does it have to be a complete restart?

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

Posted on
Sun Nov 06, 2016 2:32 pm
petematheson offline
Posts: 847
Joined: Sep 14, 2014
Location: Southampton, UK

Re: Harmony Hub plugin

All commands are sent using the Harmony remote itself.

I'm pretty sure a resync fixes the issue but I usually end up hitting the restart instead. I've literally just done it as had the same problem tonight so next time i'll try a re-sync and confirm that it works as well.
It seems to be almost a daily thing where it stops reporting the activity correctly so far.

Posted on
Sun Nov 06, 2016 2:39 pm
FlyingDiver offline
User avatar
Posts: 7217
Joined: Jun 07, 2014
Location: Southwest Florida, USA

Re: Harmony Hub plugin

Ok, so the only other thing I can think of is to put the plugin in debug mode so I can see if it's receiving the activity change, but not acting on it. That'll mean going through the entire log looking for all the activity for this plugin. You might want to wait for Indigo 7, as it'll be easier then.

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

Posted on
Thu Nov 10, 2016 3:04 pm
petematheson offline
Posts: 847
Joined: Sep 14, 2014
Location: Southampton, UK

Re: Harmony Hub plugin

Ok, so no idea what's going on now.

Nothing is working on the harmony plugin.
Reload plugin, nothing.
If I try and Sync, the drop down is empty.

Starting plugin "Harmony Hub 0.2.8" (pid 3261)
Harmony Hub Debug Debugging enabled
Started plugin "Harmony Hub 0.2.8"
Harmony Hub Starting Harmony Hub
Harmony Hub Debug Plugin version detected: 0.2.8
Harmony Hub Debug Current version is: 0.2.8
Harmony Hub Debug Getting latest release from FlyingDiver/Indigo-Harmony...
Harmony Hub Debug GET /repos/FlyingDiver/Indigo-Harmony/releases/latest
Harmony Hub Debug HTTP 200 OK
Harmony Hub Debug Latest release is: 0.2.8
Attachments
Screen Shot 2016-11-10 at 21.03.44.png
Screen Shot 2016-11-10 at 21.03.44.png (32.39 KiB) Viewed 3445 times

Posted on
Thu Nov 10, 2016 3:06 pm
petematheson offline
Posts: 847
Joined: Sep 14, 2014
Location: Southampton, UK

Re: Harmony Hub plugin

Oh weird.
Opened the properties for each of the hubs and 'Enable Indigo Communication' had somehow unchecked itself on both devices?
No other devices affected in Indigo.

Posted on
Thu Nov 10, 2016 3:11 pm
FlyingDiver offline
User avatar
Posts: 7217
Joined: Jun 07, 2014
Location: Southwest Florida, USA

Re: Harmony Hub plugin

The plugin will disable devices if it can't connect to it when the device is started. That could be an authorization error or a communications error. There should be something in the log file about it.

Hmm. Just checked. Most of those are debug level messages. They should be warning level. I'll change that next time I'm updating the code.

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

Who is online

Users browsing this forum: No registered users and 3 guests

cron