Author Topic: How can I catch Device On/Off event on particular device ?  (Read 2200 times)

bulek

  • Administrator
  • wants to work for LinuxMCE
  • *****
  • Posts: 909
  • Living with LMCE
    • View Profile
How can I catch Device On/Off event on particular device ?
« 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 »
Thanks in advance,

regards,

Bulek.