Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. pati

    NEWS

    • Neuer Blog: Fotos und Eindrücke aus Solingen

    • ioBroker@Smart Living Forum Solingen, 14.06. - Agenda added

    • ioBroker goes Matter ... Matter Adapter in Stable

    P
    • Profile
    • Following 0
    • Followers 0
    • Topics 0
    • Posts 1
    • Best 0
    • Groups 0

    pati

    @pati

    0
    Reputation
    5
    Profile views
    1
    Posts
    0
    Followers
    0
    Following
    Joined Last Online

    pati Follow

    Latest posts made by pati

    • RE: [Adapter] Neuer radar2-Adapter

      @frankjoke Ich hatte gestern das Problem dass die Geräte nach einer Minute bereits als away gekennzeichnet wurden. Scanzeit auf 20 Sekunden, delayAway auf 15 Minuten. Ich habe dann mal einen Blick in den Code geworfen und festgestellt dass die Zeit beim Starten zurückgesetzt wird:

      if (Math.floor(scanDelay * 2 / 1000 / 60)<= delayAway)
          delayAway = Math.ceil(scanDelay * 2.5 / 1000 / 60);
      

      In meinem Fall steht scanDelay auf 20 Sekunden - also ergibt sich daraus:
      20000 * 2 / 1000 / 60 = 0,66 - nach dem floor bleibt dann noch eine 0.

      Du schreibst dass delayAway auf 2,5*scanDelay gesetzt wird wenn delayAway UNTER scanDelay*2 gesetzt wurde. Prüfen tust du jedoch ob delayAway größer ist als Math.floor(scanDelay * 2 / 1000 / 60) - in meine Fall steht hier also if (0 <= delayAway) - das ist natürlich immer true wenn delayAway >= 0 ist. Dadurch wird delayAway dann auf 1 Minute gesetzt.

      Ich habe die zwei Zeilen auskommentiert - läuft nun wunderbar mit einer Verzögerung von 15 Minuten.

      posted in Entwicklung
      P
      pati
    Community
    Impressum | Datenschutz-Bestimmungen | Nutzungsbedingungen
    The ioBroker Community 2014-2023
    logo