Skip to content
  • Home
  • Aktuell
  • Tags
  • 0 Ungelesen 0
  • Kategorien
  • Unreplied
  • Beliebt
  • GitHub
  • Docu
  • Hilfe
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Standard: (Kein Skin)
  • Kein Skin
Einklappen
ioBroker Logo

Community Forum

  1. ioBroker Community Home
  2. English
  3. ioBroker general
  4. adapter LOGs monitoring for errors with mail notifications

NEWS

  • UPDATE 31.10.: Amazon Alexa - ioBroker Skill läuft aus ?
    apollon77A
    apollon77
    48
    3
    8.3k

  • Monatsrückblick – September 2025
    BluefoxB
    Bluefox
    13
    1
    1.9k

  • Neues Video "KI im Smart Home" - ioBroker plus n8n
    BluefoxB
    Bluefox
    15
    1
    2.3k

adapter LOGs monitoring for errors with mail notifications

Geplant Angeheftet Gesperrt Verschoben ioBroker general
4 Beiträge 2 Kommentatoren 501 Aufrufe 2 Watching
  • Älteste zuerst
  • Neuste zuerst
  • Meiste Stimmen
Antworten
  • In einem neuen Thema antworten
Anmelden zum Antworten
Dieses Thema wurde gelöscht. Nur Nutzer mit entsprechenden Rechten können es sehen.
  • shaarkysS Offline
    shaarkysS Offline
    shaarkys
    schrieb am zuletzt editiert von
    #1

    Hi,
    I'm quite new with ioBroker and using is mostly for integrations with WeConnect, HaasSoohn, Easee, which I share then via MQTT to Homey. From time to time it may happen that one of the adapter is in error state - I tried to search but didn't find answer - is there any way how to monitor logs for errors or adapter states and send fatal errors via email ? I'm not looking for a way to script everything from scratch, rather I wonder I have overlooked some module with such functionality ?
    Can someone share some info / guidance ?

    What I have found so far is Log parser, which is mainly used for Visualisation and it's kind of overkill for the basic need...

    Much appreciated.

    Thank you.

    liv-in-skyL 1 Antwort Letzte Antwort
    0
    • shaarkysS shaarkys

      Hi,
      I'm quite new with ioBroker and using is mostly for integrations with WeConnect, HaasSoohn, Easee, which I share then via MQTT to Homey. From time to time it may happen that one of the adapter is in error state - I tried to search but didn't find answer - is there any way how to monitor logs for errors or adapter states and send fatal errors via email ? I'm not looking for a way to script everything from scratch, rather I wonder I have overlooked some module with such functionality ?
      Can someone share some info / guidance ?

      What I have found so far is Log parser, which is mainly used for Visualisation and it's kind of overkill for the basic need...

      Much appreciated.

      Thank you.

      liv-in-skyL Offline
      liv-in-skyL Offline
      liv-in-sky
      schrieb am zuletzt editiert von
      #2

      @shaarkys

      I played around with this script - long ago

      maybe you can change this for your task

      if a special error or warning appears - the script sends a true to the datapoint and after 2 seconds the datapoint will be switched to false again

      
      
      
      
      const dpPrefix = "javascript."+ instance +".";
      
      //definition des dp's - BLOCK 1
      
      createState(dpPrefix + "OwnLogEntries.Meross",false, { name: 'Meross',  type: 'boolean', role:"switch", read:  true,  write: true,});
      createState(dpPrefix + "OwnLogEntries.Test",false, { name: 'Test',  type: 'boolean', role:"switch", read:  true,  write: true,});
      createState(dpPrefix + "OwnLogEntries.Warn515",false, { name: 'Test',  type: 'boolean', role:"switch", read:  true,  write: true,});
      createState(dpPrefix + "OwnLogEntries.Display7219Matrix",false, { name: 'Test',  type: 'boolean', role:"switch", read:  true,  write: true,});
      
      
      
      // für jeden definierten fehler der trigger - BLOCK 2
      
      function checkErrors(data) {
        //Alarm 1 
       // hier mit regex um genauer zu filtern
          if(data.message.match(/ Error Test /g)){                               // hier angleichen fehler meldung
         setState(dpPrefix + "OwnLogEntries.Test",true);                         // hier angleichen dp
         setStateDelayed(dpPrefix + "OwnLogEntries.Test",false,2000);            // hier angleichen dp
         }
      
         //Alarm2
         if(data.message.includes("instance system.adapter.meross.0 terminated with code 156")){       // hier angleichen fehler meldung
         setState(dpPrefix + "OwnLogEntries.Meross",true);                                             // hier angleichen dp
         setStateDelayed(dpPrefix + "OwnLogEntries.Meross",false,2000);                                // hier angleichen dp
         }
      
      
       
      }
      
      function checkWarnings(data) {
                 //Warn1
         if(data.message.includes("(515) BT already scanning!")){       // hier angleichen warning meldung
         setState(dpPrefix + "OwnLogEntries.Warn515",true);                                             // hier angleichen dp
         setStateDelayed(dpPrefix + "OwnLogEntries.Warn515",false,2000);                                // hier angleichen dp
         }
      }
      
      
      function checkWarnings2(data) {
            log("bin drin","warn")     //Warn1
         if(data.message.includes("7219Matrix")){       // hier angleichen warning meldung
         setState(dpPrefix + "OwnLogEntries.Display7219Matrix",true);                                             // hier angleichen dp
         setStateDelayed(dpPrefix + "OwnLogEntries.Display7219Matrix",false,2000);                                // hier angleichen dp
         }
      }
      
      onLog("error", checkErrors);
      onLog("warn", checkWarnings);
      onLog("warn", checkWarnings2);
      
      
      
      
      

      nach einem gelösten Thread wäre es sinnvoll dies in der Überschrift des ersten Posts einzutragen [gelöst]-... Bitte benutzt das Voting rechts unten im Beitrag wenn er euch geholfen hat. Forum-Tools: PicPick https://picpick.app/en/download/ und ScreenToGif https://www.screentogif.com/downloads.html

      shaarkysS 1 Antwort Letzte Antwort
      1
      • liv-in-skyL liv-in-sky

        @shaarkys

        I played around with this script - long ago

        maybe you can change this for your task

        if a special error or warning appears - the script sends a true to the datapoint and after 2 seconds the datapoint will be switched to false again

        
        
        
        
        const dpPrefix = "javascript."+ instance +".";
        
        //definition des dp's - BLOCK 1
        
        createState(dpPrefix + "OwnLogEntries.Meross",false, { name: 'Meross',  type: 'boolean', role:"switch", read:  true,  write: true,});
        createState(dpPrefix + "OwnLogEntries.Test",false, { name: 'Test',  type: 'boolean', role:"switch", read:  true,  write: true,});
        createState(dpPrefix + "OwnLogEntries.Warn515",false, { name: 'Test',  type: 'boolean', role:"switch", read:  true,  write: true,});
        createState(dpPrefix + "OwnLogEntries.Display7219Matrix",false, { name: 'Test',  type: 'boolean', role:"switch", read:  true,  write: true,});
        
        
        
        // für jeden definierten fehler der trigger - BLOCK 2
        
        function checkErrors(data) {
          //Alarm 1 
         // hier mit regex um genauer zu filtern
            if(data.message.match(/ Error Test /g)){                               // hier angleichen fehler meldung
           setState(dpPrefix + "OwnLogEntries.Test",true);                         // hier angleichen dp
           setStateDelayed(dpPrefix + "OwnLogEntries.Test",false,2000);            // hier angleichen dp
           }
        
           //Alarm2
           if(data.message.includes("instance system.adapter.meross.0 terminated with code 156")){       // hier angleichen fehler meldung
           setState(dpPrefix + "OwnLogEntries.Meross",true);                                             // hier angleichen dp
           setStateDelayed(dpPrefix + "OwnLogEntries.Meross",false,2000);                                // hier angleichen dp
           }
        
        
         
        }
        
        function checkWarnings(data) {
                   //Warn1
           if(data.message.includes("(515) BT already scanning!")){       // hier angleichen warning meldung
           setState(dpPrefix + "OwnLogEntries.Warn515",true);                                             // hier angleichen dp
           setStateDelayed(dpPrefix + "OwnLogEntries.Warn515",false,2000);                                // hier angleichen dp
           }
        }
        
        
        function checkWarnings2(data) {
              log("bin drin","warn")     //Warn1
           if(data.message.includes("7219Matrix")){       // hier angleichen warning meldung
           setState(dpPrefix + "OwnLogEntries.Display7219Matrix",true);                                             // hier angleichen dp
           setStateDelayed(dpPrefix + "OwnLogEntries.Display7219Matrix",false,2000);                                // hier angleichen dp
           }
        }
        
        onLog("error", checkErrors);
        onLog("warn", checkWarnings);
        onLog("warn", checkWarnings2);
        
        
        
        
        

        shaarkysS Offline
        shaarkysS Offline
        shaarkys
        schrieb am zuletzt editiert von
        #3

        @liv-in-sky thank you, I was worried that there is no adapter I can simply re-use. Will take a look, thank you very much for sharing!

        liv-in-skyL 1 Antwort Letzte Antwort
        0
        • shaarkysS shaarkys

          @liv-in-sky thank you, I was worried that there is no adapter I can simply re-use. Will take a look, thank you very much for sharing!

          liv-in-skyL Offline
          liv-in-skyL Offline
          liv-in-sky
          schrieb am zuletzt editiert von
          #4

          @shaarkys

          if you have any questions - don't hesitate to ask

          nach einem gelösten Thread wäre es sinnvoll dies in der Überschrift des ersten Posts einzutragen [gelöst]-... Bitte benutzt das Voting rechts unten im Beitrag wenn er euch geholfen hat. Forum-Tools: PicPick https://picpick.app/en/download/ und ScreenToGif https://www.screentogif.com/downloads.html

          1 Antwort Letzte Antwort
          1
          Antworten
          • In einem neuen Thema antworten
          Anmelden zum Antworten
          • Älteste zuerst
          • Neuste zuerst
          • Meiste Stimmen


          Support us

          ioBroker
          Community Adapters
          Donate

          718

          Online

          32.4k

          Benutzer

          81.4k

          Themen

          1.3m

          Beiträge
          Community
          Impressum | Datenschutz-Bestimmungen | Nutzungsbedingungen | Einwilligungseinstellungen
          ioBroker Community 2014-2025
          logo
          • Anmelden

          • Du hast noch kein Konto? Registrieren

          • Anmelden oder registrieren, um zu suchen
          • Erster Beitrag
            Letzter Beitrag
          0
          • Home
          • Aktuell
          • Tags
          • Ungelesen 0
          • Kategorien
          • Unreplied
          • Beliebt
          • GitHub
          • Docu
          • Hilfe