Page 1 of 1

Several similar events as one?

Posted: Wed Nov 02, 2011 5:49 pm
by LoA
Hi!

I have a Nexa motion detector which gives about 10 signals in one rapid burst for each motion. I would like EG to treat this as one event. So if this same incoming event repeats many times within 1 or 2 seconds i would like it to be treated as one event och produce another event. Is this possible?

Re: Several similar events as one?

Posted: Thu Nov 03, 2011 5:22 am
by krambriw
In general, it is not difficult to solve this with a python script. However, I think in your case, you have the TellStick Duo? If you download the latest plugin for it, there is a new configuration setting that allows you to do exactly this, to set a time frame where multiple number of the same event will be treated as one.

To start another event with this event is then straight forward, you make a new macro, and create a python script like this

Code: Select all

eg.TriggerEvent("IR Detector triggered me", payload = "Maybe not needed")
Then you drag the IR detector event from the log window on the left side to this macro. Next time the IR detectors sends an event, the macro will be started and your new event will be created.


Best regards, Walter

Re: Several similar events as one?

Posted: Thu Nov 03, 2011 11:08 am
by LoA
It doesn┬┤t work, I really don┬┤t understand the log either:


(Event) 11:57:10 TellStickDuo.RawEvent: class:command;protocol:arctech;model:selflearning;house:4389674;unit:10;group:0;method:turnon;Duo_ID:3
(Macro) 11:57:10 Python-skript
(Script) 11:57:10 Python-skript
(Event) 11:57:10 Main.yougotmail
(Macro) 11:57:10 Trigga event "yougotmail"
(Action) 11:57:10 Network Event Sender: Map: yougotmail
(Event) 11:57:10 TellStickDuo.RawEvent: class:command;protocol:arctech;model:selflearning;house:4389674;unit:10;group:0;method:turnon;Duo_ID:3
(Macro) 11:57:10 Python-skript
(Script) 11:57:10 Python-skript
(Event) 11:57:10 TellStickDuo.RawEvent: class:command;protocol:arctech;model:selflearning;house:4389674;unit:10;group:0;method:turnon;Duo_ID:3
(Macro) 11:57:10 Python-skript
(Script) 11:57:10 Python-skript
(Event) 11:57:10 TellStickDuo.RawEvent: class:command;protocol:arctech;model:selflearning;house:4389674;unit:10;group:0;method:turnon;Duo_ID:3
(Macro) 11:57:10 Python-skript
(Script) 11:57:10 Python-skript
(Event) 11:57:10 TellStickDuo.RawEvent: class:command;protocol:arctech;model:selflearning;house:4389674;unit:10;group:0;method:turnon;Duo_ID:3
(Macro) 11:57:10 Python-skript
(Script) 11:57:10 Python-skript
(Event) 11:57:10 Main.yougotmail
(Macro) 11:57:10 Trigga event "yougotmail"
(Action) 11:57:10 Network Event Sender: Map: yougotmail
(Event) 11:57:10 Main.yougotmail
(Macro) 11:57:10 Trigga event "yougotmail"
(Action) 11:57:10 Network Event Sender: Map: yougotmail
(Event) 11:57:10 Main.yougotmail
(Macro) 11:57:10 Trigga event "yougotmail"
(Action) 11:57:10 Network Event Sender: Map: yougotmail
(Event) 11:57:11 Main.yougotmail
(Macro) 11:57:11 Trigga event "yougotmail"
(Action) 11:57:11 Network Event Sender: Map: yougotmail
(Event) 11:57:11 TellStickDuo.RawEvent: class:command;protocol:arctech;model:selflearning;house:4389674;unit:10;group:0;method:turnon;Duo_ID:3
(Macro) 11:57:11 Python-skript
(Script) 11:57:11 Python-skript
(Event) 11:57:11 Main.yougotmail
(Macro) 11:57:11 Trigga event "yougotmail"
(Action) 11:57:11 Network Event Sender: Map: yougotmail


Any ideas?

Re: Several similar events as one?

Posted: Thu Nov 03, 2011 12:11 pm
by krambriw
Yes, you are using the wrong event type from Telldus Duo, you shall use normal events, not raw events.

To make this work, you have to define a device for function in Telldus Center, otherwise you will not get normal events for the device.

Raw events are coming for everything, also for undefined devices.

BestR

Re: Several similar events as one?

Posted: Thu Nov 03, 2011 12:53 pm
by LoA
Thank you Walter!

I never even mapped the sensor in Telldus Center before since I could use the RAW-event. Now its mapped and working nicely. Every time something is put in my mailbox (actual letters that is) my phone will tell me about it. Really neccessary ;-)