I think I have found a temp solution. I just disabled the ActiveApp and media player queries for now. My main concern with HE is power state so turning those off won't hurt anything I think.
My 5 series TCL has the same issue. I am not sure how to go about a fix. I can add code to translate home to Roku, or treat home like Roku but record the actual value.
The is a fair amount of inconsistency in the Roku software. The reason I use mediaInputSource and application both, its hat mediaInputSource is the value, as reported by the media streaming status check query media player) and application is the value reported by query active app.
I am thinking I will leave application as reported, and just update the on/off detection handler to treat home and Roku synonymously.
Please pull the update and let me know if it works for you. It appears to work on my series 5 TCL TV.
OK. I have looked and looked in this thread and other places. I give up. Can someone show me how you would change the volume of a Roku TV from a rule? Feeling dumb today.
OK, just letting you know it reports differently than it would for a TV.
The setVolume does not work, because Roku does not support the command. Also Hubitat does not support TV in rules so you must use a custom command. The only commands available are mute, unmute, volumeUo, volumeUp10, volumeDown, volumeDown10
As such, Roku allows us to raise and lower volume, but we cannot set volume to any specific level β itβs all relative adjustments only.
In case anyone else finds this in a search some day (like me) here's what that looks like in a rule:
Thanks!
Does anyone have a rule machine example to set the input?
Where do I find the setInputSource action?
Custom attribute
I thought Custom attributes were for triggers only? I am trying to set the source.
Oh sorry.... Create a button controller to use a variable. Use a string variable for setinputsource="name" such as "InputHDMI1" or "Netflix" How I think I would do it anyway.
To set the input source use custom action
Then select the device, and the custom action. The argument you pass will be the name of the input source from the JSON list, sans quotes.
Sorry my screen shot was wrong. Use switch, not actuator.
Little late to the game on this since it was developed in '19 but new to HE and wanting to automate my Roku TV. Went to github, reading instructions. Attempting to follow line 21 to import drivers but when I attempt, nothing happens. I put in the URL and hit 'import'. It ask me I'm sure. I hit 'OK' and then nothing. Any ideas on what I could be doing wrong. TIA
I have since move to recommending to use Hubitat Package Manager. It will manage the install and updates. Take a look at how to install HPM,
I have been looking to do this same thing Armand mentioned in another thread "But, if your desire is something like: turn on tv, launch Hulu, watch KABC, then I can do this. " /roku-rules/51252/8
I want to ask alexa to turn on NBC. Flow would be Hulu child turns on (which turns on my tv via HDMI control) and changes to NBC on Live. I have a Roku child setup for hulu and can open HULU and select the profile but need to open to NBC channel. Not sure if the child can just open but feel like profile might be in the way. I have searched and read but can't seem to find the flow that Armand mentioned. Link or help would be appreciated.
I did set up a Rule Machine that opens an NBC app child and move up, right, right, select to turn on the Live local channel in that app. However, the app is unstable and hangs most times on Live load. This happens both manually and through the rule so not because of automation. I would hope there is a more efficient way to open directly to the channel in Hulu.
Welcome to the community @user2934
For something like this, I would recommend simple rules. You can then cascade actions based on events. For instance, you can tell it to turn on Hulu, then wait for Application to be Hulu, then press Select to select default profile, then enter the correct remote keys to navigate to NBC. That would be the solution for now. I no longer have Hulu+Live, so I cannot tinker to see if there is a way to command hulu to a certain channel in the open itself. But if anyone wants to test this, I can certainly provide a custom command option to send those query / command argument to the currently running app.