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

New power on/off method via chromecast #31

Open
nstrelow opened this issue Feb 4, 2020 · 4 comments
Open

New power on/off method via chromecast #31

nstrelow opened this issue Feb 4, 2020 · 4 comments

Comments

@nstrelow
Copy link
Owner

nstrelow commented Feb 4, 2020

Copied from https://community.home-assistant.io/t/philips-android-tv-component/17749/431?u=nstrelow

Somebody has found a new (?) way to power on the TV via a chromecast command, which works for me instantly and even if the TV is in deep sleep. Works much better than the WoL approach, the details are here: eslavnov/pylips#52 (comment) 9 and eslavnov/pylips#52 (comment) 5

@nstrelow, maybe you can implement this in your component?

@busshi
Copy link

busshi commented Feb 8, 2020

Hello I tried to wake up my TV with this command :

curl -v http://IP:8008/apps/ChromeCast -X POST

But it doesn’t work even if the TV is well set up. I am wondering how this command can work if the TV is in deep sleep and LAN interface are down ??

@nstrelow
Copy link
Owner Author

nstrelow commented Feb 9, 2020

I will have to test and see (in April).

I was hoping that LAN would stay connected and Chromecast would stay online. Will have some tries in April.

But please feel free to report/test more. This helps a lot 😄

@crbyxwpzfl
Copy link

crbyxwpzfl commented Sep 20, 2020

I just came across this while i was looking for the right URL to the ChromeCast
for me curl -X POST http://ip-address:8008/apps/ChromeCast works.

Im using this great tool https://github.com/eslavnov/pylips
under built-in-commands 87. he suggests running allow_power_on to allow to remotely power on the TV via chromecast request

with his tool:
python3 pylips.py --host %TV's_ip_address% --user %username% --pass %password% --command allow_power_on

with curl:
curl -X POST --digest --insecure -u username:password https://ip-address:1926/6/menuitems/settings/update -d "values":[{"value":{"Nodeid":2131230736, "data": {"selected_item":1}}}]

He has very good documentation in the wiki.

not sure if this helps like I said I just stubbled across this.

@nstrelow
Copy link
Owner Author

Thanks, maybe be a good option to use instead of my code or give some ideas how to improve this component

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants