I’m new to OH and working with OH2. I’m fumbling a little but, get getting things to work. I’ve added an “unofficial” binding for LG WebOStv Binding which works well. I’m trying to make a more user friendly sitemap. In particular, for the volume UP/Down.
rule "VolumeUpDown"
when Item LG_TV0_VolumeUp received command
then
switch receivedCommand{
case 0: LG_TV0_VolumeDown.send(ON)
case 1: LG_TV0_VolumeUp.send(ON)
}
//For Debugging To Display Message on TV
//LG_TV0_Toast.sendCommand(receivedCommand.toString)
end
This doesn’t seem to work and I’m not sure how to diagnose it.
Lastly, Is there a better layout/design or way to control TV functions?
I am new around here, so this may be a stupid reply…
But your “dummy” switch is LG_TV0_VolumeUp… and the TV is also linked to LG_TV0_VolumeUp?
Isn’t that a recursive command? When it gets a volume up command, it’s going to send the same volume up command to itself?