FYI, the false case for $response contains ‘running’ can be one of two things:
When the response body doesn’t contain the text ‘running’, e.g. when Netflix is off the status will be ‘stopped’.
The the TV is off, the web request will return an empty response.
Let me know if you have any questions.
Update
I built these when others were using the TV and I couldn’t fully test them. Now that the pistons have run for a bit, there is an error where the polling will cause the TV to turn on when it’s off. Will figure out a fix and update this in a bit.
My piston is exactly like yours. The only thing that I added for test purposes was a “chanelUp();” before the URL call to test.
When I added the chanelUp it worked, but the URL call responded with a 408 response.
To clarify I don´t have a Smarthings hub. Just the Classic app.
Thats looking very good. Thanks for the great tutorial. As soon as i find some time i will implement this.
Sould the same trick be possible with a ´pause´ status? I have a movie mode button, and when thats pressed while the netflix app is running play/pause will adjust the lighting. If i can do something with the netflix status like you did with ‘stopped’ it would mean if i press pause on the actual tv remote it will also adjust the lighting.
Sorry for jumping in on a slghtly different issue (feel free to tell me to start another thread), but you guys seem to know a lot about TV control.
Im using the standard ST App to control my TV and I note that I can set the source on the TV when it powers on along with picture mode and sound mode (also ambient mode). Is this something that wasnt possible when this thread started?
My question is that power on sometimes fails with this message in the Log:-
9:23:19 AM: warn throw : returned java.util.concurrent.ExecutionException: java.util.concurrent.TimeoutException: Request timed out to pooch.st.internal/10.1.86.190:80 of 5000 ms
If this happens then the TV doesnt power on although it may work a few mins later.
Do you guys know anything about this TimeoutException?
Hello, everyone, and thanks very much for these notes. I’ve had good luck adding a launch command for the Samsung TV’s Disney+ app in my universal remote application, Simple Control. I’d like to add launch commands for my TV’s Xfinity Stream Beta and Apple TV apps. Does anyone know those app names and app IDs- or how can I find that information? These apps were not listed in the above links. Thanks!
Did anyone find a response ‘Paused’ yet from either the Netflix app or the Samsung tv?
What im trying to do is to change the lights when i press pause on my tv remote. The remote will pause netflix on the tv app. I just cant seem to figure out how to get the ‘Paused’ status as a response with a GET request on either the tv or the app.
When in webcore there is also $status and Playbackstatus on the tv. Also cant make it work that way.