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

any chance we could expand support for more philips tv's ? #21

Open
joepvanboekel opened this issue Apr 13, 2021 · 14 comments
Open

any chance we could expand support for more philips tv's ? #21

joepvanboekel opened this issue Apr 13, 2021 · 14 comments

Comments

@joepvanboekel
Copy link

we have 2 philips TV's that are recognized by HA, can get it added but then I can not control or turn on/off TV's at all

Device info
1_58PUS6504/12
by Philips
Firmware: mt5887:TPM196E_091.002.078.253

Device info
1_65PUS6121/12
by Philips
Firmware: mt5891:TPL161E_012.003.039.001

when this device is turned on, the state goes to Became unavailable, when turned of it goes to Turned off, so it seems to recognize something but not correctly

Turned off
7:20:56 PM - 4 hours ago
Became unavailable
5:53:21 PM - 5 hours ago

(I modified a custom component before so I know it can work, I believe philips2014 to work with the 65PUS6121, but my RaspberryPI crashed and I did not backup the script in time)

would it be of any help if I extract for both TV's all (needed) URL/portnumber/responses and post them back to here?

@elupus
Copy link
Collaborator

elupus commented Apr 13, 2021

Yes if you post all end points that would help me a lot.

@joepvanboekel
Copy link
Author

joepvanboekel commented Apr 14, 2021

I think these are all I can find, although the information about jointspace is scattered everywhere around the internet
the 58PUS6504/12 does not respond (anymore?) to port 1925/1926 for some reason, so could not try commands yet, although HASS did detect the TV
(the TV is hanging outside, so I'll retry another time when i have direct access)

for the 65pus6121:
responses.txt

@elupus
Copy link
Collaborator

elupus commented Apr 15, 2021

Does it respond on /5/ instead of /1/?

@joepvanboekel
Copy link
Author

Does it respond on /5/ instead of /1/?

The 65pus only responds to /1/, the 58 had it Ports closed

how is Autodetect done? Via Some discovery protocol which also exposes firmware version or really using Port 1925/1926?

@elupus
Copy link
Collaborator

elupus commented Apr 15, 2021

We manually configure api version..Then we detect if https is needed (1926) based on the system endpoint.

The annoying thing is that your data indicate some bastard mix and match between v1 and v6 api.

@joepvanboekel
Copy link
Author

the 58PUS6504/12 seems to work OK now with the integration, I have powered it first down by removing the powercable then it started to respond to port 1925 again

regarding the 65PUS6121 could we put in some magic in the python script to add exceptions based on the firmware or something ?

@elupus
Copy link
Collaborator

elupus commented Apr 15, 2021

From what i can tell the 65PUS6121 is not really sending anything odd apart from the long channel requests. could you try somethings for me?

Can you tune a single dummy channel manually so there is a single channel stored on the TV? doesn't need to have signal, just exists in the channel list.

Can you post {"powerstate": "Standby"} to the powerstate endpoint and see if it goes into standby.

@joepvanboekel
Copy link
Author

when adding 2 channels I get response on

GET http://192.168.39.105:1925/1/channels
{
1048704: {
"preset": "4",
"name": "-----"
},
1310848: {
"preset": "5",
"name": "-----"
}
}

GET http://192.168.39.105:1925/1/channellists
{
0: {
"name": "All TV channels",
"source": "tv"
}
}

POST http://192.168.39.105:1925/1/powerstate
{"powerstate": "Standby"}

will put TV in standby, so this works

the Philips integration also looks to start working after adding a channel on the TV, so I think the integration chokes on the fact it does not get an response from the channels.

perhaps I should not ask this here, but how and where can I add the trigger for the WOL to wake-up the TV (using the mediaplayer widget) before it was integrated in Hass we could add it using configuration.yaml but that moved away so I'm a bit confused now

@elupus
Copy link
Collaborator

elupus commented Apr 16, 2021

Device trigger for "device was requested to turn on" inside gui.

@Emrvb
Copy link

Emrvb commented Sep 13, 2021

@elupus

Is there a specific reason why the wake on lan feature is not integrated in this library? I'm not really sure how the device trigger in home assistant is supposed to work.
I can add the WOL as automation for the device trigger which seems to work, but how do I turn the TV on? Wake on Lan only wakes the TV from deep sleep.

@elupus
Copy link
Collaborator

elupus commented Sep 13, 2021

@elupus

Is there a specific reason why the wake on lan feature is not integrated in this library? I'm not really sure how the device trigger in home assistant is supposed to work.
I can add the WOL as automation for the device trigger which seems to work, but how do I turn the TV on? Wake on Lan only wakes the TV from deep sleep.

Because it could be accomplished by automations also it can be done via IR blaster. I did however not know that it only woke it from deep sleep.

@Emrvb
Copy link

Emrvb commented Sep 13, 2021

@elupus

Would you accept a pull request that adds native support for WOL (when a mac address is specified explicitly) and reverts to current behavior when there is no mac address set?

@elupus
Copy link
Collaborator

elupus commented Sep 13, 2021

Maybe.. but fix the current behavior first.

@Emrvb
Copy link

Emrvb commented Sep 13, 2021

Fair enough, but I'm unsure how that could be accomplished. I'm not familiar enough with home assistant internals. Perhaps you could elaborate on how you would fix this?

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