My amp doesn’t let you numerically enter in a volume level. You have to press and hold the relevant volume button as the level slowing increases/decreases.
I have the Harmony binding working, but it doesn’t look like there way to simulate continuously pressing a button.
What I am trying to do is send a number to openHAB using Amazon Echo and HA-Bridge. The number received will be used to set how long the button is to be pressed down.
I have it working but it seems a bit janky.
rule "Harmony_Volume_Presses Up"
when
Item Harmony_Volume_Presses_Up received command
then
var i = 0
var Number num_BtnPresses = 10
num_BtnPresses = receivedCommand
while((i=i+1) < num_BtnPresses) {
sendCommand(Harmony_Press_Amp_Up, ON)
}
end
Is it a bad idea to not use Sleep between each command?
The Smart Remote and the Harmony iOS/Android apps both allow you to press and hold a button, the Hub then continuously spits out the signal until you let go. Would they be doing anything different or do you think they are just repeating the single press over and over?