Good morning guys!
I want to send the following code with post comand to start the applications in my smart tv philips, but I can’t format the code correctly …
Can someone help me? thank you!
shell_comand:
tv_netflix: "curl -X POST --digest --insecure -u 45rBpsqDxkVwwz8h:d75bf331c6dd2256a2970f7be5755013d9601dc313b0bd740dd8f9e7dcbb9130 https://192.168.1.10:1926/6/applications/launch -d "
script:
tv_netflix:
alias: Netflix
sequence:
- service: shell_command.tv_netflix
data_template: '{"intent":{"action":"empty","component":{"className":"com.netflix.ninja.MainActivity","packageName":"com.netflix.ninja"}}}'
this is the original json code:
{
“intent”: {
“action”: “empty”,
“component”: {
“className”: “com.netflix.ninja.MainActivity”,
“packageName”: “com.netflix.ninja”
}
}
}