Alexa + SmartThings + IFTTT + Harmony to turn TV on and off by voice (2015 version)

I’m having the same experience as others have described earlier…the app errors out when attempting to connect to any of the Harmony Hubs in the house.

From the app:
“Failed to save page: deviceAuthorization”

From the logs:
physicalgraph.exception.UncheckedException: com.netflix.astyanax.connectionpool.exceptions.BadRequestException: BadRequestException: [host=10.140.165.225(10.140.165.225):9160, latency=4(4), attempts=1]InvalidRequestException(why:(String didn’t validate.) [smartthings_prod][DeviceData][port] failed validation) @ line 157

I checked with support and this is what they had to say about Harmony integration:

Just double checked with one of my developers and the Harmony integration has not been fully fixed yet. We are in some testing phases and, from what I understand, we are making some pretty good progress. I apologize for the inconvenience. When the issue is resolved, it should be announced at http://blog.smartthings.com/.

That’s what I thought. There would have been a big announcement if the harmony integration was fixed.

That’s consistent with what I’m seeing. The integration does seem to fully work (I can start/end activities from ST now and do not need IFTTT to integrate with Harmony/ST with Alexa), but I have to initially set it up from my Harmony ios app. When I do that, two apps show up in ST: the “Logitech Harmony (Connect)” app (note the parentheses) which works fine completing the integration and a “Logitech Harmony Connect” app (not sure how it’s different) that does not work and still gives me the device auth error.

Maybe that’s not the case for everyone? Hope it’s a good sign though that things will be fully fixed soon!

2 Likes

“Do you mean that it is working both ways now? Harmony -> ST as well as ST -> Harmony without the beta connect app and no workarounds? Well, that’s news…”

Yes I have it working both ways. ST->harmony now works with the trigger Smart labs App. You still get errors when trying to setup the Harm->ST through Smart labs but it works when you set it up through the MyHarmony app(from logitech NOT Smarthings). I can now do both ST->Harmony and vice versa. They still need to get the Smart labs working but going through MyHarmony is a minor inconvenience to me.

What I’ve found interesting is that the “Logitech Harmony (Connect)” app, which is created when you establish a connection using the Harmony iOS app, succeeds with pairing SmartThings and a Harmony Hub. However, when you configure the app in SmartThings it fails to discover the hub you just paired.

Conversely, if you attempt to establish a connection with the “Logitech Harmony Connect” app using the SmartThings app, it succeeds with discovering the hub. However, it fails to pair!

Makes no sense to me…

I am totally confused here as I don’t think we have both ways official integration as of now without resorting to workarounds. @thegibertchan is spending sleepless nights to get it working as far as now. Although he is allowed couple of beers!

It took about 5 minutes (the spinning wait symbol would come on for a few seconds and then disappear repeatedly), but eventually found my harmony hub and I ended up with full integration. The Harmony device that gets added to my “things” only shows the activity playing about half the time – it always seems to work though. And, ST can control my activities flawlessly so far.

Yeah, weird how it seems to work. I decided to try after seeing a dubious post in a harmony forum saying that the ST to Harmony integration was recently fixed and working again: https://forums.logitech.com/t5/Harmony-Hub-Based-Remotes/SmartThings-and-Harmony-Hub-Integration/td-p/1356134/page/5

Here’s my a shot of my app after finishing integrating the hub through ST:

Granularity! We have granularity. :tada:

A friend of mine who uses switch control mentioned that harmony activities can go down to the granular level (pause, play after Pause, Rewind etc) but you have to put them in as a “step” in the activity. And the trick I hadn’t realized is that you have to also include whatever device controls the power for your home entertainment system. Otherwise switching to the granular activity will shut down the TV.

So, I have now been adding individual activities Basically to represent individual button pushes on the handheld remote. Once I have an activity set up the way I want, so that selecting it in the harmony app would create the effect I want, I can then associated with a virtual switch, and in turn have echo flip that switch with a voice command.

So I now have a harmony activity called “halt Roku” which is the same as hitting the pause button on the remote. And another Harmony which is the same as hitting the play button to restart it… This activity includes my TV and my Roku as entertainment devices. It has a “step” in the starting sequence that uses the pause command on the Roku.

No commands are issued for the TV, which is what confused me the first time through. Also, I do not use a “channel” for the Roku. I want the Roku to stay where it is, just hit the pause.

Also, I don’t know if I’m just doing this wrong, but I found I had to first create the activity with the devices, and then go back in and “edit the devices” in order to add the steps. If someone knows of a way to add the steps on the first pass through, please let us know.

Anyway, once I had the activity set up and working, I assigned A virtual switch called “halt”, did the usual echo authorization, and if I say “Alexa, turn on Halt” the Roku pauses!

The tricky thing is finding phrases I can remember that are not the same as commands that echo has reserved for its own uses. That’s why I can’t use “pause” or “stop.”

But I now have total hands-free control for almost every button on the Harmony remote!

This is obviously not as smooth or easy to remember as “turn on Roku” or “turn on Netflix”. I expect a lot of able-bodied people won’t want to bother with it. But for others with limited hand function, this is seriously very cool. :sunglasses:

1 Like

@JDRoberts Thanks to these write-ups the Harmony along with Alexa & SmartThings are now raising the xAF through the roof! I setup some show-specific activities for my Harmony called “Watch Breaking Bad”, “Watch Always Sunny”, “Watch Comedy Shows”, etc. and created corresponding virtual momentary switches for each. I then assigned some unused buttons for my Home Theater PC to trigger EventGhost actions that send XBMC/Kodi the JSON to fire off certain TV show playlists. I can now say “Turn on Always Sunny” and sit back and watch the magic happen!

2 Likes

Speaking of steps, some people have been successful on setting Harmony using steps that include text search. I wasn’t successful. But for example, you can have an action called ‘Netflix’ and have Harmony navigate to the Netflix app on say Fire TV. If anyone here was successful on scheduling this, please share.

Apparently one of the issues with fire TV is that it continually changes the order of the icons that you see, based on what you used most recently. But people get around that by using the search capability to make sure they always find Netflix.

https://forums.logitech.com/t5/Harmony-Hub-Based-Remotes/Hamony-Smart-Control-and-Fire-TV-Any-direct-Netflix-workaround/td-p/1381318

That said, you have to think that eventually it will come out with its own native fire TV integration. But who knows when?

1 Like

Exactly, you have to put in balance the time you’d spend implementing a workaround, and the time you have to wait for an official release. I don’t really need my kids to say “Alexa tun on SpongeBob” but would be a nice feature to have, if it would be convenient to set up . :slight_smile:

1 Like

Sounds like you’ve had a better experience than me. I’ve on a couple different occasions allowed that wait symbol to spin for >30 minutes and it still wasn’t able to discover any of the 3 hubs I have in the house!

I’ve been really interested with trying this integration and bypassing IFTTT because, for some reason, I’m seeing unexpected behavior with the Echo/IFTTT/Harmony setup.

For example, I see receive multiple notifications for a single IFTTT trigger, which indicates to me a Harmony activity is being triggered multiple times. That wouldn’t be so bad if somehow during the course of executing the IFTTT rule the Harmony activity ends up doing the inverse of what I requested (Ex. Cable TV activity starts when a command for Power Off AV was executed).

Given this erratic behavior, I’ve just turned everything off until I can identify a better solution.

Try one hub at a time? I only have one and multiples in one house is likely rare, so maybe that’s the issue.

Yeah, I thought that might be a contributing factor. But, I’ve tried the same thing with only a single hub active with the same results.

I got this one and for the life of me can’t get Ifttt to recognize it. It did for about 2 seconds 2 times, but otherwise it says that no hub is available and to make sure it is online and try again. I am sure it is online, has anyone seen this issue with Ifttt not seeing the hub?

Harmony did their own update about a day after smartthings added the echo integration, and the harmony update did something that can interfere with setting up a new recipe in IFTTT. For me, anyway, it doesn’t seem to interfere with actually running the recipes. Just getting one set up.

I reported it to both harmony and IFTTT and they’re supposed to be looking into it.

For right now, I find that it’s only bad some of the time. I suspect that the harmony cloud is getting busy and timing out.

Anyway, if I’m trying to set up a new recipe, and it gives me error messages, I just keep retrying and it works eventually.

It’s extremely annoying but, like I said, for me at least it hasn’t interfered with the recipes running, just with their initial creation.

I have tried a hundred times, and it will not see the hub. So frustrating. I have tried to make the hub have a static ip, no help. I have no idea what the issue is.