bitfocus / companion-module-roku-tv

This module will control Roku TVs using the Roku ECP protocol.
MIT License
4 stars 1 forks source link

Module Request: TCL Roku tv control #1

Closed Dwvsplat closed 4 years ago

Dwvsplat commented 4 years ago

Need: power on/off Source input (with delay timer) Volume control

josephdadams commented 4 years ago

@Dwvsplat can you clarify what you mean by delay timer?

Dwvsplat commented 4 years ago

Delay timer would be if you hit a source button and the TV is off, companion would turn the TV on then send a delayed command for the source.

josephdadams commented 4 years ago

I've started prototyping the module here: https://github.com/bitfocus/companion-module-roku-tv

I haven't tried to run it yet as it is still a work in progress. Next steps will be to poll the device for data and parse it to determine what features are available / what actions to offer.

josephdadams commented 4 years ago

@Dwvsplat would you be able to test this? I have been testing it on my Roku TV at home and it works great.

Dwvsplat commented 4 years ago

I know this a newb question, but how do install the module on my raspberry pi?

Thanks, Dan

On Sun, Mar 8, 2020 at 7:05 AM Joseph Adams notifications@github.com wrote:

@Dwvsplat https://github.com/Dwvsplat would you be able to test this? I have been testing it on my Roku TV at home and it works great.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/bitfocus/companion-module-requests/issues/171?email_source=notifications&email_token=AOVNNZYWJH56IO57AU37R2DRGOCXTA5CNFSM4K4R7D3KYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEOES45I#issuecomment-596192885, or unsubscribe https://github.com/notifications/unsubscribe-auth/AOVNNZ6H43LHD5UXIVJAYPDRGOCXTANCNFSM4K4R7D3A .

josephdadams commented 4 years ago

@Dwvsplat I have finished the module and am getting it included into the core project. Once that is done, you can download the latest 2.0 build and test it out.

josephdadams commented 4 years ago

As for testing/updating on Pi, @jarodwsams what’s the official method to pull the latest core?

jarodwsams commented 4 years ago

@Dwvsplat @josephdadams Flashing the CompanionPi image is the recommended mode for Raspberry Pi usage. Once you've got that going, just run sudo companion-update in an SSH terminal and it'll update to the latest and greatest.

The companion-update command is exclusive to the CompanionPi image and is not part of the main Companion source code. The command will not function outside of the CompanionPi build.

Information about CompanionPi can be found in the wiki: https://github.com/bitfocus/companion/wiki/CompanionPi-Documentation

josephdadams commented 4 years ago

@Dwvsplat did you give that a run?

Dwvsplat commented 4 years ago

Yep, it worked perfectly... It for the help!

On Sat, Mar 14, 2020, 8:21 PM Joseph Adams notifications@github.com wrote:

@Dwvsplat https://github.com/Dwvsplat did you give that a run?

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/bitfocus/companion-module-roku-tv/issues/1#issuecomment-599151303, or unsubscribe https://github.com/notifications/unsubscribe-auth/AOVNNZYBKRV3LNOW5KTUUVLRHQNQ7ANCNFSM4LF7INAQ .

josephdadams commented 4 years ago

That’s great! Happy to be able to serve you!

Dwvsplat commented 4 years ago

How do I get the stream deck to work with my raspberry pi? I keep getting this error message:

USB(undefined): Found device, but no access. Please quit any other applications using the device, and try again

I have tried restarting, updating, and clearing with no success.

On Sat, Mar 14, 2020 at 2:57 AM Jarod Sams notifications@github.com wrote:

@Dwvsplat https://github.com/Dwvsplat @josephdadams https://github.com/josephdadams Flashing the CompanionPi image is the recommended mode for Raspberry Pi usage. Once you've got that going, just run sudo companion-update in an SSH terminal and it'll update to the latest and greatest.

The companion-update command is exclusive to the CompanionPi image and is not part of the main Companion source code. The command will not function outside of the CompanionPi build.

Information about CompanionPi can be found in the wiki: https://github.com/bitfocus/companion/wiki/CompanionPi-Documentation

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/bitfocus/companion-module-roku-tv/issues/1#issuecomment-599020503, or unsubscribe https://github.com/notifications/unsubscribe-auth/AOVNNZ2NVIXOQTVH4U2DVQDRHMTFZANCNFSM4LF7INAQ .

josephdadams commented 4 years ago

@jarodwsams any input here?

jarodwsams commented 4 years ago

@Dwvsplat The issue is that you have one of the newer 15-button Stream Decks and the CompanionPi image doesn't include the hardware rules for that one. It's a simple fix.

  1. In an SSH terminal window, sudo nano /etc/udev/rules.d/50-companion.rules

  2. Delete all current contents of that file and replace with the following (copy/paste is your best friend)

    SUBSYSTEM=="usb", ATTRS{idVendor}=="0fd9", ATTRS{idProduct}=="0060", MODE:="666", GROUP="plugdev"
    KERNEL=="hidraw", ATTRS{idVendor}=="0fd9", ATTRS{idProduct}=="0060", MODE:="666", GROUP="plugdev"
    SUBSYSTEM=="usb", ATTRS{idVendor}=="ffff", ATTRS{idProduct}=="1f40", MODE:="666", GROUP="plugdev"
    KERNEL=="hidraw", ATTRS{idVendor}=="ffff", ATTRS{idProduct}=="1f40", MODE:="666", GROUP="plugdev"
    SUBSYSTEM=="usb", ATTRS{idVendor}=="0fd9", ATTRS{idProduct}=="0063", MODE:="666", GROUP="plugdev"
    KERNEL=="hidraw", ATTRS{idVendor}=="0fd9", ATTRS{idProduct}=="0063", MODE:="666", GROUP="plugdev"
    SUBSYSTEM=="usb", ATTRS{idVendor}=="0fd9", ATTRS{idProduct}=="006c", MODE:="666", GROUP="plugdev"
    KERNEL=="hidraw", ATTRS{idVendor}=="0fd9", ATTRS{idProduct}=="006c", MODE:="666", GROUP="plugdev"
    SUBSYSTEM=="usb", ATTRS{idVendor}=="0fd9", ATTRS{idProduct}=="006d", MODE:="666", GROUP="plugdev"
    KERNEL=="hidraw", ATTRS{idVendor}=="0fd9", ATTRS{idProduct}=="006d", MODE:="666", GROUP="plugdev"
    SUBSYSTEM=="usb", ATTRS{idVendor}=="ffff", ATTRS{idProduct}=="1f41", MODE:="666", GROUP="plugdev"
    KERNEL=="hidraw", ATTRS{idVendor}=="ffff", ATTRS{idProduct}=="1f41", MODE:="666", GROUP="plugdev"
  3. Reboot your Pi and you should be good to go

jarodwsams commented 4 years ago

As soon as v2 is officially released from beta I'll drop an updated image and this fix will be included.

Dwvsplat commented 4 years ago

Thanks, that fixed it!

On Tue, Mar 24, 2020, 10:35 PM Jarod Sams notifications@github.com wrote:

As soon as v2 is officially released from beta I'll drop an updated image and this fix will be included.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/bitfocus/companion-module-roku-tv/issues/1#issuecomment-603606513, or unsubscribe https://github.com/notifications/unsubscribe-auth/AOVNNZ4BAK5FTHMA3E7FLC3RJFUX5ANCNFSM4LF7INAQ .