Emulated Roku for Harmony

Ha! Love this forum even when my own post (that I completely forgot about) helps me again. I just accidentally blew away my Unifi Docker and had to re-install… of course with default ports so this problem started all over again… but thanks to a search on the Forum I found this same thread and teh same answer (though I still don’t remember typing it)… woot!

Sorry if I’m kinda necro’ing an old post. I’m fairly new to HA. I’ve got a harmony device that sees my emulated roku, however I can’t find it in HA under devices or anything to create automations off of. Am I doing something wrong?

@swifty I know this is an ancient post, but I’m having the exact same experience as you. Everything can find the emulated_roku except the stupid Harmony Hub.

Did you ever get this working?

No sorry it’s been a while but I don’t think I ever got this working, I do recall having luck with the emulated hue component though, so depending on what you are trying to expose to harmony, it may be worth a look.

Thanks for the reply, but that is a bummer for sure. The advantage of emulated_roku is that it can be used in the same part of activity programming as normal devices. Emulated_hue is limited to the home control section. I.E., if I set it up as home control, I can’t have the harmony do something in the proper sequence I need to start my theater.

My AV processor does not have a power on/off via the remote control; there are no IR codes for it. The only way to power it on is via a wake-on-lan packet and power off via IP or RS232. I have WOL and power off working via scripts. I just need the last mile to get the remote the ability to fire the scripts.

HA-bridge is in the same boat as emulated_hue.

It’s not an ideal solution for sure, but could you use the harmony integration for HA, then just setup an automation the fires the relevant script when the harmony activity starts / stops?

Maybe. A lot of it depends on the timing of when HA sees that and how quickly it starts the processor. In an ideal world, I’d start the TV, then processor, wait until it’s up and running, then turn on the rest. I’ll see about testing and how the equipment behaves. HDMI can be finicky about startup order sometimes.

I just got the Emulated Roku integration with Harmony working in my theater. Has anyone found a solution for triggering an automation on Pause? It seems like Roku uses Play for both Play and Pause?

There are 15 available key codes. These can be mapped to any of the physical keys on your remote. If you need more than 15 keys, you can create a second emulated roku.
Available key codes:
Home
Rev
Fwd
Play
Select
Left
Right
Down
Up
Back
InstantReplay
Info
BackSpace
Search
Enter

@ Hackashaq666 thanks for this tip, just used this to map out some more keys for my TV box.

Does anyone know if there is any way to send number keys to HomeAssistant? i.e. I have my favourite channels like 101 for BBC, but Emulated Roku doesn’t recognise those.

Thanks, how do you get Harmony to send the command to both your actual device and mirror it to the emulated Roku?

Add a Roku device to Harmony and make a “Watch Roku” routine.

Map the buttons on your harmony to the Roku commands first on the Harmony app or on your PC connected via USB to the remote.

Install LG Horizon to get your tv box registered in HA

Install Emulated Roku to HA and find your new fake Roku device

Use the blueprint below to remap the Roku buttons to send LG Horizon commands to your tv box entity

Not sure what you mean by actual device.
Emulated Roku is generally used to enable the harmony remote to control automations in homeassistant. Once the emulated Roku is included in an actvity in the harmony remote, any remote button in that activity can be mapped to one of the 15 roku keys. The roku keys are detected in homeassistant and can be used to trigger automations.

Thanks, I understand that. But I’m looking to trigger automations when I press pause and play. Meaning that those commands need to be sent to the real device (blu ray player, shield, set top box, etc.) and also to HA, which I thought was what Emulated Roku was for. Looking around the Harmony app, it seems like I can only have a command sent to one device at a time? Or am misunderstanding something? How is everyone triggering pause automations?

One way to do this:
Set the pause button to send the emulated roku key.
Include the pause command in the homeassistant automation using the Logitech Harmony Hub Integration.

I do this with mine. I set the play and pause buttons as Roku keys, then in HA set this to play/pause the Harmony device ID. Then write an automation that when each button is pressed the action runs (in my instance, pause = lamp turns on, play = lamp turns off).

That makes sense, thanks guys. I will give it a try. A bit unfortunate to have HA in the middle of Harmony’s playback operation (if HA goes down then Harmony can’t play or pause), but it seems like that’s the easiest option…

Yep agreed, if HA goes down t breaks.
What I have qs a backup option is each button set the long press as the direct Harmony function…

2 Likes

Harmony also offers Sequences, where one button in an activity can send out more than one command (not simultaneously, but sequentially as the feature name implies). Might work ok for some use-cases. And I believe these would continue to work even if HA wasn’t available (I’d thoroughly test this though to be sure…if it only times out after some length of time, and prevents using the remote during the timeout period, that could get frustrating).

2 Likes

Good point, completely forgot about sequences

1 Like