LinuxMCE Forums
May 25, 2013, 03:54:43 pm 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: Respond to events (howto?)  (Read 538 times)
brononius
Guru
****
Posts: 360


Trying to keep it simple and centralized...


View Profile WWW
« on: April 15, 2012, 04: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...
Logged

Version: linuxMCE 1004 (v 2012-07-01)
Extra's: Cacti, webmin, phpmyadmin, joomla

Server: MSI MS-7519 / E7400 2,8GB / 4GB / SSD 60GB / Radeon HD4350 / RTL8111 - 3C905C-TX
Orbiters: HTC Desire Z, HP PocketPC, Samsung Galaxy S, iPAD, ASUS eeePAD
Automation: EIB technology, KNX IP ROUTER 750
Phones: Cisco 7940, Cisco 7960
Camera's: IPCAM02
sambuca
Guru
****
Posts: 420


View Profile
« Reply #1 on: April 15, 2012, 07: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
Logged
cfernandes
Guru
****
Posts: 267



View Profile WWW
« Reply #2 on: July 27, 2012, 01: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
Logged
_if_
Guru
****
Posts: 222


View Profile
« Reply #3 on: July 27, 2012, 02: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...
Logged
cfernandes
Guru
****
Posts: 267



View Profile WWW
« Reply #4 on: July 27, 2012, 02:16:45 pm »

i setup in webadmin  events handler -> respond to events 
Logged
_if_
Guru
****
Posts: 222


View Profile
« Reply #5 on: July 27, 2012, 02:23:46 pm »

try if there happens any difference in advanced - configuration - events
Logged
cfernandes
Guru
****
Posts: 267



View Profile WWW
« Reply #6 on: July 27, 2012, 03: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

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!