Hey @bravenel, i see that this was fixed in the last release notes but I think they are backwards. This is what I have in the driver:
def volumeUp(){
level = device.currentValue("level")
level = level.toInteger()
newLevel = level + state.volumeStep
if (newLevel <=100){
setLevel(newLevel)
}
else setLevel(100)
log.debug("volume Up called")
}
def volumeDown(){
level = device.currentValue("level")
level = level.toInteger()
newLevel = level - state.volumeStep
if (newLevel >= 5){
setLevel(newLevel)
}
else setLevel(5)
log.debug("volume down called")
}
And state.volumeStep is set to an integer in the update function.
And i have a button controller set up as follows:
When I press button 1 (and i confirmed that on the device edit page) i get the volume dropping and when I press button 5 the volume goes up. Can you confirm?
When I added extra debug logging in I see the following:
and