It is possible to modify the DH letting it update the TV status every minute, you can insert: runEvery1Minute("pushUpdate")
in the methods installed() and updated().
The pushUpdate() method should be something like:
private pushUpdate() {
This is what I use.
You first need to add the TV to webcore , just do that in the SmartThings app and then in webcore choose available devices.
I only have mine set to refresh every 5 mins I find that plenty.
The status of the tv (On/Off) should not require a change of the code or using a refresh command in webCore. If you set up the Device Network ID properly it will update, I had the same issue. Here is the detail from the initial post on that:
Note: Within the Device on the SmartThings IDE the Device Network ID for Device instance must be hex of IP address and port in the form of 00000000:0000 (i.e. 10.0.1.220:80 is 0A0001DC:0050) - if you check the logs the smart device will log the correct address that you can copy paste, once the IP address has been set. If this is not set you wont get updated on/off status. Apparently you can get the Device handler to set it but ive not been able to properly test this yet.
Thanks for jumping in. It works fine only once and I have to hit the refresh button to make it work continuously.
I did set the correct Device Network ID and I have verified the netid from the live log. All looks good but don’t know what could be the problem. I’m expecting the OP steve.bratt to jump in as well.
I have Live Logging going. I change from HDMI3 to HDMI4 on my Bravia.
The hex address does not show up in the live logging. I try to click on each entry, but nothing more detailed comes up.
I used an online IP to hex converter to enter the ID, but I’m not getting updated status.
No control, not status. No communication in any way. Ive been stumped on this, took a break and tried again with the same results on both models I have. I gotta think its either a port issue or a TV setting.