Philips TV Turn On/Off


#1

I have a Philips Smart TV with Ambilight and would like to be able to have some control over it from SmartThings, or more so from ActionTiles with the involvement of webCoRE.

So far I have a Virtual Button, this is available in ActionTiles.

Next up, my issue is to figure out how I can send a command to the TV through webCoRE using the button available in ActionTiles. In my mind, it sounds like it is certainly possible.

This is what I have been working with so far:

The above script allows me to spoof the pairing process and obtain a username and password to authenticate with the TV in the browser. I can get to parts where it will give me information about the TV.

https://PHILIPSTVIP:1926/6/input/key

I think it is this part I need to send to the TV to trigger it off/on:

if args.command == “standby”:
config[‘path’] = "6/input/key"
config[‘body’] = { “key” : “Standby” }
post_command(config)

Any help with this would be much appreciated. I haven’t given up just yet and I have a feeling it must be possible. There is a iOS app that I can use to turn the TV on and off but the ability to do it through ActionTiles using webCoRE would be so much better.