Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Suspend command doesn't send CEC off to TV #6

Open
ersan opened this issue Jul 12, 2018 · 3 comments
Open

Suspend command doesn't send CEC off to TV #6

ersan opened this issue Jul 12, 2018 · 3 comments
Labels
enhancement New feature or request

Comments

@ersan
Copy link

ersan commented Jul 12, 2018

I'm just starting to learn about this protocol, but what I wanted to do with it was replace my logitech harmony system by having commands to turn the TV's in my house on and off. When you hold the menu button and select sleep it will send a CEC command to turn off my TV, but when I do appletv command suspend via node-appletv it does not, it just puts the Apple TV to sleep without sending the command.

Sending any command will send the CEC wake command if the TV is off, as expected.

I guess what I wanted to know is: is it possible to script the 'hold down TV button, click sleep' sequence using this plugin (or Media Remote Protocol in general) or if I'm wasting my time?

@octalmage
Copy link
Contributor

Can you do it with the iOS remote app? If it’s possible there then it seems like it should be possible here.

@ersan
Copy link
Author

ersan commented Aug 1, 2018

What I ended up doing was hook up RPi’s to each of my TV’s and use node-appletv to send the suspend command and then a CEC off command to the TV right after. It was the most consistent solution for me, I couldn’t get the key sequence working and IIRC any mediaremotetv command sent to the ATV wakes it up, which is undesirable.

@ryanquinlan
Copy link

Anyone sort this out? Digging through things now, it's not overly obvious where the actual commands/keys are defined. Seems like you could alter the key press duration. Just need the details on how to send the key that looks like a TV screen on the physical/app remotes it seems.

@evandcoleman evandcoleman added the enhancement New feature or request label Feb 2, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

4 participants