ioBroker.lgtv
ioBroker.lgtv copied to clipboard
[Tipp/Instruction] Launch App with mute key
I am aware that this is not an issue, but rather a solution. Maybe you can add this to your instructions?
Problem: LG Smart TV without dedicated Disney+ key on the remote.
Solution: Missuse mute key to launch the app by double clicking
var clicked = false;
var timer;
on({id: 'lgtv.0.states.mute', change:"ne"}, function (obj) {
if(obj.state.val && !clicked){
clicked = true;
timer= setTimeout(function () {
clicked = false;
},1000);
}
else if(!obj.state.val && clicked){
setState("lgtv.0.states.launch", "com.disney.disneyplus-prod");
clicked = false;
}
else{
return;
}
});