Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
languagejavascript
 if (Event.SourceType == "GRELE" && Event.SourceId == "1")
{
 var msgevent = Event.Clone();
 if(Event.Action == "ON")
 {
  msgevent.SourceId = "2";
  DoReact(msgevent);
  DoReactStr("CAM","1","REC","");
DoReactStr("GRELE","2","ON","");
 
 }
 if(Event.Action == "OFF")
 {
  msgevent.SourceId = "2";
  DoReact(msgevent);
  DoReactStr("CAM","2","REC","");
DoReactStr("GRELE","2","OFF","");
 
 }
}