Utilising Button held command

Posted on
Thu Feb 09, 2017 5:06 pm
colinpartridge offline
Posts: 373
Joined: Jan 13, 2014
Location: London, UK

Utilising Button held command

Wondering whether I could use the button held command to control volume of Sonos device. I'm thinking along the lines of volume changing whilst button is held. I imagine this would involve some kind of python script with a loop, but could do with some pointers to get me started...or tell me that it won't work.

Colin

Posted on
Thu Feb 09, 2017 8:22 pm
howartp offline
Posts: 4559
Joined: Jan 09, 2014
Location: West Yorkshire, UK

Re: Utilising Button held command

That's already supported, depending on your device.

Devices that use Central Scene class include Hold and Release commands.

Hold will fire every (second?) that you're holding the button, then Release will fire once when you let go.

Not sure if it's every second or what it is - that's down to Zwave spec/implementation, not my choosing.


Sent from my iPhone using Tapatalk

Posted on
Fri Feb 10, 2017 7:30 am
colinpartridge offline
Posts: 373
Joined: Jan 13, 2014
Location: London, UK

Re: Utilising Button held command

Thanks Howard, I'm using a ZRC-90 controller, but it looks like the hold down time will be too long to get a decent response ( 2 seconds mentioned in the manual). Works well recalling sonos presets though.

Colin

Posted on
Fri Feb 10, 2017 8:04 am
autolog offline
Posts: 3988
Joined: Sep 10, 2013
Location: West Sussex, UK [GMT aka UTC]

Re: Utilising Button held command

I have just tried holding down the button on a ZRC-90. There is a slight delay before Indigo starts putting messages in the Event Log that the button is being held down and then they come thick and fast until you let go of the button and get the Release message. :)

Posted on
Fri Feb 10, 2017 8:29 am
colinpartridge offline
Posts: 373
Joined: Jan 13, 2014
Location: London, UK

Re: Utilising Button held command

Ok, cool, better than I thought, haven't looked at it closely just yet. Just need to get a bit of python script together for the Volume up/down loop. Something for the weekend.

Colin

Posted on
Sat Feb 11, 2017 3:58 am
howartp offline
Posts: 4559
Joined: Jan 09, 2014
Location: West Yorkshire, UK

Re: Utilising Button held command

You don't need any a scripting.

Trigger: Button held down
Action: Lower volume by 5%

Press and hold the button, the volume will keep decreasing.


Sent from my iPhone using Tapatalk

Posted on
Sat Feb 11, 2017 4:55 am
colinpartridge offline
Posts: 373
Joined: Jan 13, 2014
Location: London, UK

Re: Utilising Button held command

howartp wrote:
You don't need any a scripting.

Trigger: Button held down
Action: Lower volume by 5%

Press and hold the button, the volume will keep decreasing.


Sorry Howard, I'm being dumb but I don't see a Lower Volume By 5% Sonos action, just Volume up, Volume Down. :(

Colin

Page 1 of 1

Who is online

Users browsing this forum: No registered users and 1 guest