LinuxMCE Forums
May 24, 2013, 04:16:10 am GMT-1 *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News: Rule #1 - Be Patient - Rule #2 - Don't ask when, if you don't contribute - Rule #3 - You have coding skills - LinuxMCE's small brother is available: http://www.agocontrol.com
 
   Home   Help Search Chat Login Register  
Pages: [1]
  Print  
Author Topic: LinuxMCE Scenarios support in Insteon PLM  (Read 519 times)
seagullarity
Regular Poster
**
Posts: 18


View Profile
« on: March 25, 2011, 08:10:09 pm »

I'm writing code so that LinuxMCE will automatically add Insteon devices that are in the same LinuxMCE scenario into an Insteon Group (by updating each insteon devices' ALDB). When the user chooses to activate that scenario it will send an Insteon Group Command (instead of sending separate individual commands to each insteon device, resulting in a staggered response).

I've got the code written that updates the ALDBs of each insteon device accordingly, based on data from pluto_main (queried through the XML_Data_Handler_Plugin).

Now there's one thing I'm trying to figure out: what kind of command should I send from LinxuMCE to the Insteon PLM drivers to trigger the Group command?

Tschak in the IRC channels has recommended the following.

<TSCHAKeee> basically, i would put the devices in a DeviceGroup
<TSCHAKeee> figure out in the plugin if the devices are part of a DeviceGroup
<TSCHAKeee> and if they all belong to the same parent interface
<TSCHAKeee> and then ask if the target interface implements an execute broadcast scenario command
<TSCHAKeee> if so, execute it, passing in the devicegroup
<TSCHAKeee> so the target device can do its mapping of devicegroup to whatever it needs to do internally

Any other thoughts on this problem?

PS: I've also fully implemented support for Insteon Motion Detectors in the Ruby GSD drivers, and I've cleaned up the code. I will commit my changes shortly.
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines Valid XHTML 1.0! Valid CSS!