python-roku icon indicating copy to clipboard operation
python-roku copied to clipboard

Turning the TV on

Open BradyCodes opened this issue 4 years ago • 5 comments

Is there a function that can turn the TV on? I read the documentation and couldn't find anything like this, maybe it's an upcoming feature? I just thought that you wouldn't want to have to get your remote to turn on your TV and then just use what ever program you made.

BradyCodes avatar Jan 23 '21 00:01 BradyCodes

poweron and poweroff work provided you have the Fast TV Start enabled.

On Fri, Jan 22, 2021 at 7:00 PM Brady Redding [email protected] wrote:

Is there a function that can turn the TV on? I read the documentation and couldn't find anything like this, maybe it's an upcoming feature? I just thought that you wouldn't want to have to get your remote to turn on your TV and then just use what ever program you made.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/jcarbaugh/python-roku/issues/69, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABLDPSB3EO5G5IPFCHDXQXLS3IGSBANCNFSM4WPGPITA .

ifuchs avatar Jan 23 '21 00:01 ifuchs

I have a TV with a Roku 4K attached, and the poweron feature seems to work fine.

kalebmckale avatar Jul 25 '21 23:07 kalebmckale

poweron and poweroff work provided you have the Fast TV Start enabled.

power() works with my TCL tv (fast start enabled) but poweron() and poweroff() return errors ("poweroff is not a valid method"). Not sure if I'm using them incorrectly or RokuOS no longer likes the command or ???

mc510 avatar Jan 28 '24 01:01 mc510

Im curious how the roku app does it as i have that setting (Fast TV Start) disabled however the app allows for turning on the tv.

raycekar avatar Apr 07 '24 17:04 raycekar

Doing some wireshark looking, it seems to be a WakeOnLan type of request. I'm still digging as I have been unsuccessful doing any sort of WOL to turn on the tv yet through tcpreplay sending those packets again (aka. not the most knowledgeable on networking so open to other thoughts as I am one that would prefer to keep that Fast TV Start setting off)

raycekar avatar Apr 22 '24 23:04 raycekar