Author Topic: Respond to events (howto?)  (Read 4367 times)

brononius

  • Guru
  • ****
  • Posts: 454
  • Trying to keep it simple and centralized...
    • View Profile
    • OnIrIa - linuxMCE blog
Respond to events (howto?)
« on: April 15, 2012, 05:05:39 pm »
Hey,

It's been a while since i tried to configure my linuxmce more in detail.
I can control all lights with my server. So this part is covered (output relays).
Next step is my lightbuttons in house. But for this, i don't know how i can see if linuxmce is picking up the signal from the button. I'm playing around with 'respond to events', but i've got the feeling that this isn't working as it should be. Do you need to do something special for the events? Is there anything where i need to pay attention to?


I've tried following 4 scenario's:

Scenario 1:
   Event: A sensor is tripped
   What device: Button 0/0/35
   What time of day: DAY
   Trigger: Tripped = 1
   Command: lighting wizard: Light 0/2/15 ON

Scenario 2:
   Event: Someone rings the doorbell
   What device: Button 0/0/35
   Command: lighting wizard: Light 0/2/15 ON

Scenario 3: Test Phone (ip phones are working perfectly with the system)
   Event: there's an incoming call
   Which phone: PhoneA
   What time of day: DAY
   Command: lighting wizard: Light 0/2/15 ON

Scenario 4: Test DeviceOn
   Event: A device is turned on
   What device: Light 0/2/15
   Event ON/OFF = 1
   Command: lighting wizard: light 0/2/16 & 0/2/17 ON


ps with a command line, i can activate 0/2/15 in the correct way. So my interconnection between the server and my domotica (eib) is working...
Version: linuxMCE 1404, running virtual on ESXi

Orbiters: ASUS eeePAD, Nexus 5, Huwai, web
Automation: EIB technology, KNX IP ROUTER 750
Phones: Cisco 7912-7940-7960
Camera's: Foscam POE

sambuca

  • Guru
  • ****
  • Posts: 462
    • View Profile
Re: Respond to events (howto?)
« Reply #1 on: April 15, 2012, 08:45:20 pm »
When setting up events, it is useful to see what events are actually sent in the system. The DCERouter.log will list all events, and the type of event. The texts in the event drop down is sometimes a bit misleading, or there are several selection that could match you purpose.

Also note that after adding event commands, you need to reload the router. Adding or changing event criteria does not require reloading.

br,
sambuca

cfernandes

  • Guru
  • ****
  • Posts: 359
    • View Profile
    • my company web site
Re: Respond to events (howto?)
« Reply #2 on: July 27, 2012, 02:51:04 pm »
i have problem's on 1004   too

on DCErouter.log  i have  but no command's send .



07      07/27/12 9:43:52.099            Event #9 has no handlers <0x5cdabb70>
07      07/27/12 9:43:52.099            Received Message from 39 (Frente / Recepçao) to -1001 (unknown / ), type 2 id 9 Event:Sensor Tripped, retry none, parameters: <0x5cdabb70>
07      07/27/12 9:43:52.099              Parameter 25(Tripped): 1 <0x5cdabb70>
05      07/27/12 9:43:52.099            Socket::ReceiveData 0x916d2668 failed, bytes left 0 start: 3980000 1: 0 1b: 0 2: 0 2b: 0 m_Socket: 168 Incoming_Conn Socket 168 127.0.0.1 <0x5cdabb70>
05      07/27/12 9:43:52.100            Socket::ReceiveString2 ReceiveData failed m_Socket: -1 Incoming_Conn Socket 168 127.0.0.1 <0x5cdabb70>
05      07/27/12 9:43:52.100            TCPIP: Closing connection to -1003 (Router Dev #0) 0x916d2668 m_Socket: -1 <0x5cdabb70>
05      07/27/12 9:43:52.100            Router::RemoveAndDeleteSocket 0x916d2668 -1003 <0x5cdabb70>
08      07

_if_

  • Guru
  • ****
  • Posts: 248
    • View Profile
Re: Respond to events (howto?)
« Reply #3 on: July 27, 2012, 03:09:25 pm »
did you guys set it up in webadmin under Advanced or do you use it directly in events? because some time ago it happened to me that the system would only respond if it was set up under advanced...

cfernandes

  • Guru
  • ****
  • Posts: 359
    • View Profile
    • my company web site
Re: Respond to events (howto?)
« Reply #4 on: July 27, 2012, 03:16:45 pm »
i setup in webadmin  events handler -> respond to events 

_if_

  • Guru
  • ****
  • Posts: 248
    • View Profile
Re: Respond to events (howto?)
« Reply #5 on: July 27, 2012, 03:23:46 pm »
try if there happens any difference in advanced - configuration - events

cfernandes

  • Guru
  • ****
  • Posts: 359
    • View Profile
    • my company web site
Re: Respond to events (howto?)
« Reply #6 on: July 27, 2012, 04:35:43 pm »
work  now .


i complete remove all event's  that i created,   reboot  server  and recreate   now is  working .

 i have  camera  show on orbiters  when  sensor is triggered.

thank's