Hey guys,
I have a FS20 motion dedector, which generates an event if theres is any motion.
And this event triggers a Lamp to switch on. But my problem is to switch the lamp off.
If i juse the timer EG isnt able to do other tasks. And now i need a solution to fix this.
Is there any possiblity to say EG: If theres is no specified incoming event for time xx:xx switch the ligth of?
THanks for help!!!
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.
react if no specified event apears.
Re: react if no specified event apears.
Try this tree. It's really simple. The trick is to start a timer when an event is received from the motion detector.
Each time an event is received from the motion detector, the timer gets reset. If no event is received from the motion detector during the full length of the timer, the timer will generate its event. You can now turn off your lamp when you received the event from the timer.
Each time an event is received from the motion detector, the timer gets reset. If no event is received from the motion detector during the full length of the timer, the timer will generate its event. You can now turn off your lamp when you received the event from the timer.
Code: Select all
<?xml version="1.0" encoding="UTF-8" ?>
<EventGhost Name="Configuration Tree" Expanded="True" Version="1436" Guid="{500D155C-2A29-4FB1-83A4-67572C83C0D7}" Time="1287582839.64">
<Autostart Name="Autostart" Expanded="True">
<Plugin File="Timer" Identifier="Timer">
gAIpLg==
</Plugin>
</Autostart>
<Macro Name="Motion Detected" Expanded="True">
<Event Name="Main.MotionDetected" />
<Action>
Timer.TimerAction(u'CountDown', 0, 1, 30.0, u'TimeElapsed', False, True, 1, u'00:00:00')
</Action>
<Action>
EventGhost.TriggerEvent(u'TurnLampOn', 0.0)
</Action>
</Macro>
<Macro Name='Trigger event "TurnLampOff"' Expanded="True">
<Event Name="Timer.TimeElapsed" />
<Action>
EventGhost.TriggerEvent(u'TurnLampOff', 0.0)
</Action>
</Macro>
</EventGhost>
miljbee
TCP Events : A Better Network Event Sender/Receiver Plugin.
The Network Event Sender/Receiver in C#
Get events in EG from Google Calendar.
TCP Events : A Better Network Event Sender/Receiver Plugin.
The Network Event Sender/Receiver in C#
Get events in EG from Google Calendar.
-
soundman33
- Posts: 12
- Joined: Mon Jul 26, 2010 3:51 pm
Re: react if no specified event apears.
Thank you VERY much. It works!!
-
smallnithin
- Posts: 1
- Joined: Wed Jul 27, 2011 5:31 am
Re: react if no specified event apears.
Trigger is a bunch of statement that executes in response to some predetermined event. The event may be inserting, updating, or deleting records, and the bunch of statement get executed either prior to or immediately following the event.
Create a Trigger
MySQL triggers can be created using the following syntax:
CREATE TRIGGER
{ BEFORE | AFTER }
{ INSERT | UPDATE | DELETE }
ON
FOR EACH ROW
More Details : Lamp Training
Create a Trigger
MySQL triggers can be created using the following syntax:
CREATE TRIGGER
{ BEFORE | AFTER }
{ INSERT | UPDATE | DELETE }
ON
FOR EACH ROW
More Details : Lamp Training