ioBroker.lgtv icon indicating copy to clipboard operation
ioBroker.lgtv copied to clipboard

[Tipp/Instruction] Launch App with mute key

Open mar565 opened this issue 3 years ago • 0 comments

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;
    }
});

mar565 avatar Sep 30 '21 20:09 mar565