How Can I Execute a Request Beep Command Using Python or AS

This is a legacy forum which is locked for new topics. New topics should be started in one of the other forums under Extending Indigo
Forum rules
This is a legacy forum which is locked for new topics. New topics should be started in one of the other forums under Extending Indigo
nsheldon
Posts: 2469
Joined: Mon Aug 09, 2010 2:12 pm
Location: CA
Contact:

How Can I Execute a Request Beep Command Using Python or AS

Post by nsheldon »

I'm looking for a way to request a beep from an INSTEON device through a script (either Python of AppleScript) so that I can implement some conditional logic within a triggered action. I'm hoping there's something similar to the turnOn action, such as

Code: Select all

insteon.device.requestBeep(indigo.devices['My Light'].id)
User avatar
jay (support)
Site Admin
Posts: 19232
Joined: Wed Mar 19, 2008 11:52 am
Location: Austin, Texas
Contact:

Re: How Can I Execute a Request Beep Command Using Python or

Post by jay (support) »

We don't expose it directly in the API but you can always execute an action group.
Jay (Indigo Support)
Twitter | Facebook | LinkedIn
nsheldon
Posts: 2469
Joined: Mon Aug 09, 2010 2:12 pm
Location: CA
Contact:

Re: How Can I Execute a Request Beep Command Using Python or

Post by nsheldon »

Okay. Yea, I kinda figured that was the direction I'd need to go. Thanks!
nsheldon
Posts: 2469
Joined: Mon Aug 09, 2010 2:12 pm
Location: CA
Contact:

Re: How Can I Execute a Request Beep Command Using Python or

Post by nsheldon »

Actually, on further contemplation, using an Action Group wouldn't work unless I created an action group for every one of my SwitchLincs and KeypandLincs. I use the beep as user feedback for enabling or disabling motion activated lighting in each room. I was hoping to be able to use 1 beep for enabled and 2 beeps for disabled, with conditional logic based on current Indigo variable state within the trigger's action.

However, with a bit more searching, it appears it IS possible to send a beep request with Python and AppleScript by sending a Standard Direct INSTEON command 0x30 0xYY (YY being a numerical representation of duration, though not all devices support it). I'll probably go the raw INSTEON command method. I'll do some testing tonight to see which of my dimmers/relays support the duration byte as well.
User avatar
jay (support)
Site Admin
Posts: 19232
Joined: Wed Mar 19, 2008 11:52 am
Location: Austin, Texas
Contact:

Re: How Can I Execute a Request Beep Command Using Python or

Post by jay (support) »

Yep, that should work. Of course, I think there are fewer modules that support the beep functionality than that don't, but that's less relevant to the discussion. Given our NDA we aren't supposed to be supplying that information or I would have suggested it in the first place... ;)

And, action groups would work - it would just be a bit cumbersome... :P
Jay (Indigo Support)
Twitter | Facebook | LinkedIn
nsheldon
Posts: 2469
Joined: Mon Aug 09, 2010 2:12 pm
Location: CA
Contact:

Re: How Can I Execute a Request Beep Command Using Python or

Post by nsheldon »

jay (support) wrote:Yep, that should work. Of course, I think there are fewer modules that support the beep functionality than that don't, but that's less relevant to the discussion. Given our NDA we aren't supposed to be supplying that information or I would have suggested it in the first place... ;)

And, action groups would work - it would just be a bit cumbersome... :P
Yea. I'm sure your right. I haven't tried sending the beep to anything other than dimmers and relays, but all of those (both older and newer) work. I was wondering why you hadn't mentioned the raw command. Forgot about the whole NDA thing. ;-) Luckily another user in this forum had already disclosed that information in a different thread started before beep functionality was included in Indigo. The INSTEON Command Table simply shows command 1 values of 0x30 through 0x3F as "reserved", so here and Google were the only non-NDAed-user way of finding that info.

Anyway. Question answered and solution found. Thanks!
Locked

Return to “Extending Indigo with Plugins and Python”