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?
Notice: This forum has been recovered from an old backup, so some content, links, and dates may be outdated. The forum is currently read-only while we restore sign-in and registration functionality. Details
If you find this forum valuable and would like to help keep it online, donations to help cover hosting and domain costs are greatly appreciated, but never expected. You can support the forum through Buy Me a Coffee or Ko-fi. Thank you for helping preserve the EventGhost community.
If you find this forum valuable and would like to help keep it online, donations to help cover hosting and domain costs are greatly appreciated, but never expected. You can support the forum through Buy Me a Coffee or Ko-fi. Thank you for helping preserve the EventGhost community.
Several similar events as one?
-
krambriw
- Plugin Developer
- Posts: 2570
- Joined: Sat Jun 30, 2007 2:51 pm
- Location: Stockholm, Sweden
- Contact:
Re: Several similar events as one?
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
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
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")Best regards, Walter
My released plugins
https://drive.google.com/drive/folders/ ... y01eVBKeHM
https://drive.google.com/drive/folders/ ... y01eVBKeHM
Re: Several similar events as one?
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?
(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?
-
krambriw
- Plugin Developer
- Posts: 2570
- Joined: Sat Jun 30, 2007 2:51 pm
- Location: Stockholm, Sweden
- Contact:
Re: Several similar events as one?
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
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
My released plugins
https://drive.google.com/drive/folders/ ... y01eVBKeHM
https://drive.google.com/drive/folders/ ... y01eVBKeHM
Re: Several similar events as one?
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
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