Roku Developer Program

Developers and content creators—a complete solution for growing an audience directly.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
jhawk44
Level 7

Using ECP to control power on multiple TCL RokuTV units

I work for a school district and we are deploying some TCL RokuTV's.  We have an "energy manager" that works in our facilities department that won't be happy if we leave these TV's on all night (plus they will fail sooner).

With that said, I've used the ECP commands to successfully power on and off our TCL TV's with CURL and even scheduled it to run via a batch file on Windows.  However, there are lots of moving parts there, and various points of failure.  Also, I would like to allow our building administrators to have a bit of oversight into when the TV's come on and off, sort of an override option.

I discovered the "Roku Remote Tool" on the developer page, and it looks promising, however I don't see any options for controlling power.  I assume that is because it is just for Roku hardware, and not TV's with Roku built in.  Can anybody point me in the right direction for any of this?  I'd even be open to making my own internal "website" where staff could click a link to issue a command to one or more TV's in their building.  Basically just want to turn them all on or off at the same time.

 

Thank you!

Tags (1)
0 Kudos
3 Replies
AaronMSpelling
Level 12

Re: Using ECP to control power on multiple TCL RokuTV units

Hi @jhawk44  , this part of the forum is for Roku channel developers , you might find answers to your issues on other part of the forum like :

https://community.roku.com/t5/Remotes-Accessories/bd-p/remotes-accessories

https://community.roku.com/t5/Network-Wireless-Wired-Connections/bd-p/wired-and-wireless

https://community.roku.com/t5/Roku-Device-Features-Settings-Updates/bd-p/device-settings-config

or by contacting Roku directly via the support desk.

 

Building a TV Channel can be easy … if you have a right tools ===>> https://tv-channel.info/
0 Kudos
jhawk44
Level 7

Re: Using ECP to control power on multiple TCL RokuTV units

I was under the impression this was for Roku Developers, of any kind, not just for channels.  I'm using the Roku Remote App to create a script that I can publish to my end users for controlling their Roku embedded devices.  I guess I thought that this was the PERFECT place to post a question about integration, web control, scripting, etc.

0 Kudos
jhawk44
Level 7

Re: Using ECP to control power on multiple TCL RokuTV units

This is the script I currently have, which will change the power state.  The Roku Remote Tool shows an error for the press: power line, but it still works.

params:
    rasp_version: 1
    default_keypress_wait: 2
steps:
    - press: power
    - pause: 5
    - press: power

 

This is just a test, but the issue is that it doesn't know the current state of the TV.  So if the TV was already on, it turns it off.  When I issue curl commands from command line, I can use these commands:

curl -d '' "http://10.180.69.110:8060/keypress/powerOn"

curl -d '' "http://10.180.69.110:8060/keypress/powerOff"

Which work great because if the TV is off, it stays off.  Specific power state controls...

0 Kudos