Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. ioBroker Allgemein
    4. CCU Systemprotokoll anzeigen lassen

    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

    CCU Systemprotokoll anzeigen lassen

    This topic has been deleted. Only users with topic management privileges can see it.
    • F
      FuXXz last edited by

      Hallo zusammen,

      gibt es die Möglichkeit das Systemprotokoll aus der CCU (also das unter Status und Bedienung > Systemprotokoll) als Fenster in vis anzuzeigen?

      Im Objektbrowser habe ich nichts gefunden, vielleicht habt ihr ja eine Idee?

      Viele Grüße

      1 Reply Last reply Reply Quote 0
      • F
        FuXXz last edited by

        Hat keiner eine Idee? 😞

        1 Reply Last reply Reply Quote 0
        • R
          robsdobs last edited by

          Mir fällt nur ein ziemlicher Hack ein:

          Es gibt eine Möglichkeit das Systemprotokoll per ReGa Script auszulesen (https://homematic-forum.de/forum/viewtopic.php?t=10210). Das könnte man so umschreiben, das dieses in einer Systamvariablen landet. Den Inhalt der Systemvariablen könnte mann dann wiederum in IOBroker weiterverarbeiten und z.B. in vis darstelen.

          Das Script könnte wie folgt aussehen:

          ! Systemprotokoll auslesen und in Systemvariable speichern
          !-----------------------------------------------------------------
          ! Info: History Daten löschen mit
          ! var clearHistory = dom.ClearHistoryData();
          !-----------------------------------------------------------------
          
          !Name der Systemvariablen
          string sv_id = "SV_STAT_SYSPROT";
          
          !-----------------------------------------------------------------
          
          string drop = "";
          integer iLastGroupIndex = 1;
          string sCollectedNames = "";
          string sCollectedValues = "";
          string sCollectedDateTimes = "";
          string s;
          integer iStart = 0;
          integer iCount = dom.GetHistoryDataCount();
          integer rCount;
          
          foreach( s, dom.GetHistoryData( iStart, iCount, &rCount ) ) {
          	integer iGroupIndex = s.StrValueByIndex(";",0).ToInteger();
          	string sDatapointId = s.StrValueByIndex(";",1);
          	string sRecordedValue = s.StrValueByIndex(";",2);
          	string sDateTime = s.StrValueByIndex(";",3);
          
          	string sDatapointName = "";
          	object oHistDP = dom.GetObject( sDatapointId );
          	if( oHistDP ) {
          		object oDP = dom.GetObject( oHistDP.ArchiveDP() );
          		if( oDP ) {
          			sDatapointName = oDP.Name();
          			boolean bSysVar = (oDP.IsTypeOf(OT_VARDP) || oDP.IsTypeOf(OT_ALARMDP));
          			if( !bSysVar ) {
          				object oCH = dom.GetObject( oDP.Channel() );
          				if( oCH ) {
          					sDatapointName = oCH.Name();
          				}
          			}
          
          			if( iLastGroupIndex <> iGroupIndex ) {
          				drop = drop # sCollectedDateTimes # " " # sCollectedNames # " " # sCollectedValues # "\n";         
          				sCollectedNames = "";
          				sCollectedValues = "";
          				iLastGroupIndex = iGroupIndex;
          			}
          
          			string id = oDP.ID();
          			string sRet = "";
          			string sValue = sRecordedValue;
          			Call("/esp/functions.fn::WriteDPText()");
          			sRecordedValue = system.GetVar("sRet");
          
          			sCollectedNames = sDatapointName;
          			sCollectedDateTimes = sDateTime;
          
          			if( !sCollectedValues.Length() ) {
          				sCollectedValues = sRecordedValue;
          			} else {
          				sCollectedValues = sCollectedValues#", "#sRecordedValue;
          			}
          		}
          	}
          }
          
          if( sCollectedValues.Length() ) {
          	drop = drop # sCollectedDateTimes # " " # sCollectedNames # " " # sCollectedValues;
          	(dom.GetObject(ID_SYSTEM_VARIABLES)).Get(sv_id).State(drop);
          }
          
          if (drop == "") {
          	drop = "Keine Einträge im Protokoll !!!";
          }
          
          ! Textausgabe Konsole
          !----------------------------
          !WriteLine(drop);
          WriteLine("OK!");
          
          ! Systemprotokoll löschen
          !--------------------------------
          !var clearHistory = dom.ClearHistoryData();
          
          1 Reply Last reply Reply Quote 0
          • F
            FuXXz last edited by

            Dankeschön, ich werde das gleich mal testen 🙂

            Wie antiquiert Homematic doch manchmal ist 🙂

            1 Reply Last reply Reply Quote 0
            • First post
              Last post

            Support us

            ioBroker
            Community Adapters
            Donate
            FAQ Cloud / IOT
            HowTo: Node.js-Update
            HowTo: Backup/Restore
            Downloads
            BLOG

            927
            Online

            31.9k
            Users

            80.1k
            Topics

            1.3m
            Posts

            2
            4
            2277
            Loading More Posts
            • Oldest to Newest
            • Newest to Oldest
            • Most Votes
            Reply
            • Reply as topic
            Log in to reply
            Community
            Impressum | Datenschutz-Bestimmungen | Nutzungsbedingungen
            The ioBroker Community 2014-2023
            logo