LinuxMCE Forums
May 19, 2013, 01:32:55 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: How can I catch Device On/Off event on particular device ?  (Read 473 times)
bulek
Administrator
wants to work for LinuxMCE
*****
Posts: 868

Living with LMCE


View Profile
« on: January 10, 2009, 09:02:22 am »

Hi,

I'm trying to setup action when certain device changes, but I have problems. I issue this command :

Quote
08      01/10/09 8:46:30.202            Received Message from 57 (Laptop Robi / Office) to BM_light_office_00(603), type 1 id  192 Command:On, retry none, parameters: <0xb1be2b90>
08      01/10/09 8:46:30.202              Parameter 97(PK_Pipe):  <0xb1be2b90>
08      01/10/09 8:46:30.202              Parameter 98(PK_Device_Pipes):  <0xb1be2b90>

and then proper event that device has changed it's state follows - I have to catch this one :
Quote
07      01/10/09 8:46:30.262            Event #48 has no handlers <0x95bedb90>
07      01/10/09 8:46:30.263            Received Message from 603 (BM_light_office_00 / ) to -1000 (unknown / ), type 2 id 48 Event:Device On/Off, retry none, parameters: <0x95bedb90>
07      01/10/09 8:46:30.263              Parameter 10(On/Off): 1 <0x95bedb90>

But when I go into advanced->events and select On/Off event, I don't get a choice to select proper event first (PK_Event=48), I can select On/Off event parameter, but also see no possibility of setting up device ID that event came from....

Anyone already done this ?

Update: It seems to be working via Wizard-Events Handler, but I wonder why there is nowhere defined (maybe it is hidden) event type of 48 for this event ?

Regards,

Bulek.
« Last Edit: January 10, 2009, 10:23:27 am by bulek » Logged

Thanks in advance,

regards,

Bulek.
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!