Hello I am using Openhab 2.5.5 on Windows 10 and would like to change the system sound via a slider. I am using an old rule which used to work on Openhab 1.0:
rule “Volume control”
when Item Volume received command then if(receivedCommand instanceof PercentType) { setMasterVolume(receivedCommand as PercentType) } else { if(receivedCommand==INCREASE) increaseMasterVolume(20) if(receivedCommand==DECREASE) decreaseMasterVolume(20) } postUpdate(Volume, masterVolume * 100)
end
This has no effect anymore. How can I change the volume?