jcarbaugh / python-roku

Screw remotes. Control your Roku with Python.
https://pypi.python.org/pypi/roku
BSD 3-Clause "New" or "Revised" License
294 stars 95 forks source link

Turning the TV on #69

Open BradyCodes opened 3 years ago

BradyCodes commented 3 years ago

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.

ifuchs commented 3 years ago

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

On Fri, Jan 22, 2021 at 7:00 PM Brady Redding notifications@github.com 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 .

kalebmckale commented 3 years ago

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

mc510 commented 8 months ago

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 ???

raycekar commented 5 months ago

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 commented 5 months ago

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)