Hi, you need to make sure that your TV not changing the IP address assigned from your router, make sure you converted your IP4 correctly to Hex. not to forget wake up Lan option on your tv which has to be enabled and turn off power saving option on your tv too.
@samk, thanks for the words of wisdom. I havenât cracked it, but you gave me a new angle to troubleshoot. Thanks! Iâll let you know what I learnâŚ
Was able to assign Exit as back/return button. Working as expected.
Got this working on an 850D. @aarick your remote looks amazing - would you be willing to share?
I am hoping to be able to use this to dim the lights when something is playing⌠will report back.
Code is still a mess and havenât had time to clean it up. Some buttons have been customised to my tv as well. For example Iâve remapped Netflix to perform another task.
Awesome, thanks!
Iâm looking into using this with webCoRE and notice quite a number of new available things: activities, current activity, level, mute, power, etc⌠I see âmovieModeâ⌠would this be the one to find out whether something is paused/playing/stopped?
aarick, ill try this out as soon as i can with my TV if it works, ill update my code with your changes. However it would be helpful if you can make it as neat as possible with comments and such if youâve added functions so its clear to see what they do an how to change them.
I knowâŚthatâs why been saying that the code is messyâŚjust havenât had timeâŚ
I donât believe Iâve added any new functions. Mainly just reorganize and remove buttons not suited for Android. I also used the Kodi remote dth for some of the buttons iconâŚbut looking to.move to my github and add more icons in the future
Hi! Thanks for this! Things seem to be working in general with my KD-55X8505C. There are two things that donât though
- I only get the correct state (on/off) when I hit the refresh button. If I donât, the tile stays green when I turn the TV off, or grey when I turn it on
- Return key doesnât seem to work at all
Am I missing something?
Status of the TV is only poled every x mins and as far as i know its governed by smartthings, and the process doesnât work that fantastically
You can create a very simple âpollâ piston in webcore to update the status of your TV. It works like a charme.
Maybe, but it should be easier to achieve with the device handler. I tried to put a pause command and then invoke the refresh myself, but it doesnât work.
Sure, it should, but it doesnât. The workaround works perfect for me. So whatâŚ
If you find a way to improve, please share it here.
So, itâs not only me. Good to know.
Okay so I have this working on my Sony Bravia KDL-43W809C, but even when trying a polling and refreshing option for my TV it constantly shows as being on? can anyone help?
Havenât tried this yet - but will and then report back (I have a 55" and a 65" Bravia TVâs from 2014). However I am curious on the use cases? How do you all envision seeing this working?
Thanks.
Iâve got the same TV as you and mine shows as off all the time.
Itâs a glitch which the Dev is aware of but heâs not sure whatâs causing it I think.
i think it needs some polling code somewhere but knowing where to call it is the issue. Iâm going to look at the networking and how it works on the TV to see if there is something I can poll for. Will keep you updated
i think its going to be something to do with these lines of code
def off() {
log.debug âExecuting âoffââ
def json = "{âmethodâ:âsetPowerStatusâ,âversionâ:â1.0â,âparamsâ:[{âstatusâ:false}],âidâ:102}"
def result = sendJsonRpcCommand(json)
}
def refresh() {
log.debug "Executing ârefreshâ"
poll()
}
def poll() {
//set state.tv to 0ff
log.debug "poll count ${state.tv_poll_count}"
state.tv = "polling"
state.tv_poll_count = (state.tv_poll_count + 1)
if (state.tv_poll_count > 1 ) {
sendEvent(name: âswitchâ, value: âonâ)
}
log.debug "Executing âpollâ"
def json = "{âidâ:2,âmethodâ:âgetPowerStatusâ,âversionâ:â1.0â,âparamsâ:[]}"
def result = sendJsonRpcCommand(json)
}
I canât remember off hand but I think itâs something to do with SmartThings and the time restrictions on polling.