eslavnov / pylips

Control Philips TVs (2015+) and Ambilight (+ Hue) through their reverse-engineered API (+ MQTT support!)
MIT License
334 stars 58 forks source link

'PowerON' failure #108

Closed tygerlord closed 3 years ago

tygerlord commented 3 years ago

Hello,

I have Philips 58PUS7505/12 (buy in 2020) but I can't run the 'PowerOn' command.

I can have the 'powerstate' and others command seems working (not all tested).

'PowerOff' is OK.

With Android application 'Philips TV remote', I can switch on/off. Amazing, on 'PowerOn' application show a message to inform you that it can take a long time to power on (up to 1 min). I'm asking myself why ...

'allow_power_on' give back message forbidden.

I can make some tests to help.

Regards

tygerlord commented 3 years ago

Wait a minut, I will try WOL as soon as possible

in fact, this will not help, I'm in wifi and 'Philips TV remote' successfully 'PowerOn' so there are another way

tygerlord commented 3 years ago

Ok got it,

This work with WOL with a little tip, it use port 1925 at least for WIFI connected set (the set must not be in deep sleep mode too)

For Home assistant for exemple, I use a script :

start_tv:
  sequence:
    - service: wake_on_lan.send_magic_packet
      data:      
        mac: "XX:XX:XX:XX:XX:XX"  
        broadcast_address: 192.168.X.X
        broadcast_port: 1925

You can run command like wakeonlan -i 192.168.X.X -p 1925 "XX:XX:XX:XX:XX:XX"

Thank to emivaljr

Next step for home assistant, customize media_player.turn_off using this for device to remove use of script