Ankündigung

Einklappen
Keine Ankündigung bisher.

Events within a time frame

Einklappen
X
 
  • Filter
  • Zeit
  • Anzeigen
Alles löschen
neue Beiträge

    Events within a time frame

    Is there a way to act only when 2 events happen within a x minute time frame?

    Eg. if door is open and alarm is switched off within 45 seconds, this means that the person has come home.

    If I don't use this time frame, I think that the controller will also think "enter home" when the following happens:
    - person wakes up and switches alarm off when going to kitchen
    - person opens the door to catch the newspaper

    Tx for your suggestions

    Ivan

    #2
    Zitat von eulaersivan Beitrag anzeigen
    Is there a way to act only when 2 events happen within a x minute time frame?

    Eg. if door is open and alarm is switched off within 45 seconds, this means that the person has come home.
    Assume "door", "alarm" and "info" are your groupaddresses:
    As simple solution would be:

    if after(door==ON,45000u64) and "alarm"==OFF then write("info",$I'm here$c14) endif

    you can be more sophisticated, eg. watch, if the door is still open or is closed and so on.
    offizielles Supportforum für den Enertex® EibPC: https://knx-user-forum.de/eibpc/
    Enertex Produkte kaufen

    Kommentar

    Lädt...
    X