Hey Petro. Any chance you could explain this Roku integration a little further? I’ve added the config and have tested the emulated Roku using port 8060 and the XML is good. Now what? Having never ever seen a Roku let alone use one, how do I get the Harmony to fire and event in HA? Do I need to add something to the Harmony first? Can I use the event listener for this somehow?
Add the roku as a device in harmony. It’s like a tv.
When actions are performed with the device active, like pressing play, a press play event will appear in home assistant.
Thanks for your input - however that if true is an unfortunate way to take things in HA IMO. You would think that if v1 hubs are phased out the add-on would be updated to use the newer version.
The Harmony does not allow you to add anything EXCEPT home automation devices (such as HUE) to the home automation buttons. So your Roku hack doesn’t work.
Coming from OPENHAB with a working hue emulation add-on I suppose I now have to find another way to get my remote working with HA. I suppose I’m back to having to set up a DIYHUE docker instance outside of HA and hope that works somehow.
You can thank phillips hue for not allowing that. It’s not HA’s fault. Hue closed the gen2 API and made it impossible to emulate.
No, I use this currently as a replacement for hue… You just don’t understand how it works.
Openhabs hue emulation will have the same issues if harmony stops working with gen 1 hues. This is not home assistant’s doing. This is other companies (Hue, logitech). Unfortunately, we are at their mercy.
[quote=“petro, post:10, topic:255762, full:true”]
You can thank phillips hue for not allowing that. It’s not HA’s fault. Hue closed the gen2 API and made it impossible to emulate.
I cannot argue with you on that - I only know that OH2’s add-on works (and it seems to emulate the later API - since you have an config option to emulate a v1 if you need it). It also allows you to virtually push the hub button (which HA add-on doesn’t).
No, I use this currently as a replacement for hue… You just don’t understand how it works.
You’re right I don’t - so why don’t you explain it to me? I literally just checked to see if I could assign something other than home control devices to the home control buttons on my remote and the Harmony software/app says I CANNOT.
Openhabs hue emulation will have the same issues if harmony stops working with gen 1 hues. This is not home assistant’s doing. This is other companies (Hue, logitech). Unfortunately, we are at their mercy.
Again, I can only tell you what I know is working now… and OH2’s Hue emulation is working perfectly with all the apps and Harmony’s smart hub without issue.
Sorry about this replies, I cannot for the life of me figure out how to use this horrible forum software to properly quote you.
I already described it to the other gentleman.
- Add the integration
- Connect to the integration through harmony as a Roku Device.
- Use it however you want. To test, select the device and press ANY button on the remote.
- (For testing only) Following the documentation for emulated roku, see how the event is shaped. Simply subscribe to the event in the dev_tools event page. Whenever a button, any button, on the remote is pressed when the device is active (in an activity or the device is selected) That event will occur in home assistant and you can execute actions off of it.
- Make your automation to do whatever you want in HA using the event that is fired in home assistant.
Don’t click home control buttons, click device control buttons. The same buttons that are available under home control buttons are available under device control buttons. Also these buttons by default send events through the event pipe. You don’t even need to assign any actions to them because the events just appear in HA.
It’s really easy to use… it’s also the same forum that openhab uses.
Thank you very much - I will try everything you’ve just said above!
You’re right it is, and many others use this software - I’m just so used to older forum software - pressing the ‘quote’ button in the tool bar adds confusion as it’s similar (to say BB code) but breaks the minute I edit it
It’s called Discourse. There’s a tutorial buried somewhere on here. Took me all of 10 minutes to do a few years back and you get a nice badge for it (if you care about that).
Let me see if I can find the link.
Ah, you have to message @discobot to start the advanced tutorial. It will walk you through a bunch of random forum functionality.
Hi! To find out what I can do, say @discobot display help
.
Awesome, will do thanks!
Sorry back to Emulated Roku and Harmony - I have just now been able to assign the device buttons as you indicated above.
But I wanted to clarify - will the harmony allow me to (re)use the + and - buttons for each separate light/switch just like the original home control would? If yes, I guess this would require some extensive scripting in HA (or Nodered?) to bring all this functionality together?
I’m not sure, I’ve never used those buttons. What did they do?
How it worked with home control was nice.
You assign lights/dimmers, etc to your 4 buttons around the +/-, once you’ve selected the device if it was a dimmer you could then use +/- to adjust brightness.
This of course was handled by the Harmony automatically (via Hue integration).
Ah, Yes, you’d have to handle this logic in home assistant.
Make an input_select. When button a is pressed (event fires), set the input_select to the entity_id you want to target.
Then when the + or - events fire, just use the brightness_step_pct attribute for the light.turn_on service to increase or decrease the current brightness.
That’s what I figured…
Thanks for clearing that up!
Thanks so much for all the feedback. Seems I might have some kind of mDNS issue as there have been a lot of UniFi updates lately and my Harmony can’t ‘see’ the emulated Roku either so if it can’t see that, it won’t see the emulated hue either.
I honestly have a hard time believing that emulated_hue API just stopped working. It seems like some people have had luck as soon as a just a few months ago with getting it to work with Harmony.
There must be more to this, is there any OLD Hue application that can be used to test if this is really a depreciated API issue or if it is something else that is broken?
I get that it’s possible with a lot of work to work around it with emulated_roku but I feel like such major work arounds for something that should really work out of the box is really a last resort situation. From plenty of reading it seems like it’s not emulated_hue that is the issue but rather maybe networking, or some other configuration or conflict that might be the cause of this breaking down.
If anyone has any further ideas that would help! I’ve turned on debugging in the logs, unfortunately I cannot seem to find anything wrong. On HA’s side everything seems to work, however it seems like nothing I’ve tried so far is able to see the emulated_hue hub.
DIYHUE loaded into a docker container on a separate host seems to work with HA (instantly notifying that there is a Hue hub available) and other apps work too. While I understand it isn’t the same emulated implementation - it does show (together with OH2 plugin I was using just a few weeks ago) that the api’s out there right now DO work (v1 or otherwise).
Emulated hue has broken more times than I can count over the past 5 years. I have absolutely no faith in it.
Seems like a good idea to replace it with something that works then
In any event I’d still like to look into this some more - so if you happen to know of any diagnostic avenues I should be looking at do let me know.
Worst case maybe I can somehow come up with a solution that would let me use Openhab’s Hue Emulator to deal with the few light/groups I need to deal with - it still seems simpler doing that than having to make some elaborate thing with roku emulation + scripting to make use of the +/- buttons on the Smart Remote.
I’m actually quite surprised that this isn’t more of a thing/issue considering how popular the Harmony hub and remotes are with home automation and the lighting/home automation buttons really work so well in that situation (IMO).
I am happy to report there is a great work around for the built in emulated hue not working.
Hopefully this helps someone else eventually!
See the thread here: diyHue Add-on