Skip to content
  • Home
  • Recent
  • Tags
  • 0 Unread 0
  • Categories
  • Unreplied
  • Popular
  • 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

  • Default (No Skin)
  • No Skin
Collapse
ioBroker Logo

Community Forum

donate donate
  1. ioBroker Community Home
  2. Deutsch
  3. Skripten / Logik
  4. Erste Gehversuche…Hilfe

NEWS

  • Monatsrückblick Januar/Februar 2026 ist online!
    BluefoxB
    Bluefox
    18
    1
    690

  • Jahresrückblick 2025 – unser neuer Blogbeitrag ist online! ✨
    BluefoxB
    Bluefox
    18
    1
    5.8k

  • Neuer Blogbeitrag: Monatsrückblick - Dezember 2025 🎄
    BluefoxB
    Bluefox
    13
    1
    1.5k

Erste Gehversuche…Hilfe

Scheduled Pinned Locked Moved Skripten / Logik
16 Posts 6 Posters 2.7k Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • Mr. BurnsM Offline
    Mr. BurnsM Offline
    Mr. Burns
    wrote on last edited by
    #7

    Hallo,

    danke für die viele hilfe.

    > log("…") muss klein geschrieben werden.
    Erledigt. Funktioniert leider aber trotzdem nicht.

    > Hast Du für den Screen shot extra die Seriennummer durch xxxxx ersetzt und anschließend wieder korrigiert ?
    Jawohl!

    Wie kann ich testen, ob der Adapter defekt ist? einfach neu installieren?

    1 Reply Last reply
    0
    • blauholstenB Offline
      blauholstenB Offline
      blauholsten
      Developer
      wrote on last edited by
      #8

      @Mr. Burns:

      Wie kann ich testen, ob der Adapter defekt ist? einfach neu installieren? `

      Schreib in einem Skript

      log("test ob ich funktioniere")
      

      und drück dann auf Speichern und auf play….

      Entwickler vom: - Viessman Adapter
      - Alarm Adapter

      1 Reply Last reply
      0
      • Mr. BurnsM Offline
        Mr. BurnsM Offline
        Mr. Burns
        wrote on last edited by
        #9

        Habe die Zeile durch ein ; abgeschlossen, aber kein Eintrag im LOG.

        Adapter sowie raspberry neustarten hat leider auch nicht geholfen.

        Edit:

        Habe die Instanz des Adapters deinstalliert und den Adapter anschließend gelöscht. Danach neu installiert.

        Leider funktioniert nicht mal die eine Zeile des LOG.

        Ich werde das Gefühl nicht los, das ich etwas falsch mache.

        Edit2:

        Hab den adapter noch einmal deinstalliert. Gelöscht und den raspberry neu gestartet.

        Jetzt funktioniert es. Danke für euere Unterstützung.

        1 Reply Last reply
        0
        • blauholstenB Offline
          blauholstenB Offline
          blauholsten
          Developer
          wrote on last edited by
          #10

          Dann bin ich leider raus, tut mir Leid :?

          Entwickler vom: - Viessman Adapter
          - Alarm Adapter

          1 Reply Last reply
          0
          • Mr. BurnsM Offline
            Mr. BurnsM Offline
            Mr. Burns
            wrote on last edited by
            #11

            Frohe Ostern!

            tschuldigung, dass ich schon wieder nerve, aber bin gerade dabei eine und Verknüpfung reinzubasteln und bekomme es nicht hin.

            Das funktioniert: (Danke nochmal für die Hilfe)

            var TAG1 = "hm-rpc.1.JEQ0xxxxxx.16.STATE";
            var TAG2 = "hm-rega.0.xxx";
            var text = "Die Mitteilung";
            
            on (TAG1,function(obj){
                  if (obj.state.val)
                  sendTo('pushover.0', text);
            });
            

            Aber sowas nicht:

            var TAG1 = "hm-rpc.1.JEQxxxxxx.16.STATE";
            var TAG2 = "hm-rega.0.xxx";
            var text = "Die Mitteilung";
            
            on (TAG1 === true && TAG2 === true,function(obj){
                  if (obj.state.val)
                  sendTo('pushover.0', text);
            });
            

            Das auch nicht:

            var TAG1 = "hm-rpc.1.JEQxxxxxx.16.STATE";
            var TAG2 = "hm-rega.0.xxx";
            var text = "Die Mitteilung";
            
            on (TAG1,function(obj){
                  if (obj.state.val === true && TAG2 === true)
                  sendTo('pushover.0', text);
            });
            
            var TAG1 = "hm-rpc.1.JEQxxxxxx.16.STATE";
            var TAG2 = "hm-rega.0.xxx";
            var text = "Die Mitteilung";
            
            on (TAG1,function(obj){
                  if (obj.state.val){if (TAG1 ===true && TAG2 === true),
                  sendTo('pushover.0', text);
            }});
            

            Und ich steh echt auf dem Schlauch…muss wohl dazu sagen, dass mein C echt unterirdisch ist.

            Wenn mir da jemand auf den rechten Pfad helfen würde.

            Gruß

            Thomas

            BTW:

            Scripte dürfen keinesfalls in global abgelegt werden…dann werden Sie wohl nicht abgearbeitet...hätte ich mal früher drauf gehört.

            1 Reply Last reply
            0
            • blauholstenB Offline
              blauholstenB Offline
              blauholsten
              Developer
              wrote on last edited by
              #12

              Hi,

              probier mal

              if(obj.newState.val && getState(TAG2).val)
              

              Entwickler vom: - Viessman Adapter
              - Alarm Adapter

              1 Reply Last reply
              0
              • htreckslerH Offline
                htreckslerH Offline
                htrecksler
                Forum Testing
                wrote on last edited by
                #13

                ` > on (TAG1,function(obj){

                if (obj.state.val === true && TAG2 === true)

                sendTo('pushover.0', text);

                }); `

                ich denke, da fehlen die Klammern… (Fall ich auch ständig 'drauf rein)

                 if ((obj.state.val === true) && (TAG2 === true))
                
                

                Gruss Hermann

                Gruss Hermann

                ioBroker auf Proxmox (Debian) auf IntelNuc als Produktivsystem

                1 Reply Last reply
                0
                • paul53P Offline
                  paul53P Offline
                  paul53
                  wrote on last edited by
                  #14

                  @Mr. Burns:

                  Aber sowas nicht:

                  var TAG1 = "hm-rpc.1.JEQxxxxxx.16.STATE";
                  var TAG2 = "hm-rega.0.xxx";
                  var text = "Die Mitteilung";
                  
                  on (TAG1 === true && TAG2 === true,function(obj){
                        if (obj.state.val)
                        sendTo('pushover.0', text);
                  });
                  ```` `  
                  

                  Empfehlung:

                  var TAG1 = "hm-rpc.1.JEQxxxxxx.16.STATE";
                  var TAG2 = "hm-rega.0.xxx";
                  var text = "Die Mitteilung";
                  var t1;
                  var t2;
                  
                  function t12() {
                  	if (t1 && t2) sendTo('pushover.0', text);
                  }
                  
                  on(TAG1, function(dp) {
                  	t1 = dp.state.val;
                  	t12();
                  });
                  on(TAG2, function(dp) {
                  	t2 = dp.state.val;
                  	t12();
                  });
                  
                  

                  Bitte verzichtet auf Chat-Nachrichten, denn die Handhabung ist grauenhaft !
                  Produktiv: RPi 2 mit S.USV, HM-MOD-RPI und SLC-USB-Stick mit root fs

                  1 Reply Last reply
                  0
                  • Mr. BurnsM Offline
                    Mr. BurnsM Offline
                    Mr. Burns
                    wrote on last edited by
                    #15

                    Danke für eure Unterstützung!

                    Dieses Script funktioniert:

                    if(obj.newState.val && getState(TAG2).val)
                    

                    Dieser:

                    if ((obj.state.val === true) && (TAG2 === true))
                    

                    und dieser:

                    var TAG1 = "hm-rpc.1.JEQxxxxxx.16.STATE";
                    var TAG2 = "hm-rega.0.xxx";
                    var text = "Die Mitteilung";
                    var t1;
                    var t2;
                    
                    function t12() {
                       if (t1 && t2) sendTo('pushover.0', text);
                    }
                    
                    on(TAG1, function(dp) {
                       t1 = dp.state.val;
                       t12();
                    });
                    on(TAG2, function(dp) {
                       t2 = dp.state.val;
                       t12();
                    });
                    

                    leider nicht.

                    Ich habe ein paar Fälle, wo ich den negativen Status abfragen muss. Also bei "false" auslösen oder prüfen auf "false" bzw. ODER Verknüpfungen.

                    wie läßt sich das realisieren?

                    so hat es nicht funktioniert:

                    if(obj.newState.val && getState(TAG2 === true).val)
                    

                    oder

                    if(obj.newState.val && getState(TAG2 === false).val)
                    
                    1 Reply Last reply
                    0
                    • V Offline
                      V Offline
                      versteckt
                      wrote on last edited by
                      #16

                      Hallo,

                      du musst zuerst den Wert holen und kannst ihn dann prüfen:

                      FALSCH:

                      if(obj.newState.val && getState(TAG2 === false).val)

                      RICHTIG:

                      if(obj.newState.val && getState(TAG2).val === false)

                      Mit getState(XXX).val bekommst du den Inhalt der Variable

                      und danach auf Inhalt prüfen.

                      LG Christian

                      Raspi 1, Raspi 2, iobroker, Mac Mini: alles mit aktueller ioBroker Version

                      homegear für Homematic und MAX!

                      occ, zWave, rpi, hmm und homekit Entwickler

                      1 Reply Last reply
                      0

                      Hello! It looks like you're interested in this conversation, but you don't have an account yet.

                      Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

                      With your input, this post could be even better 💗

                      Register Login
                      Reply
                      • Reply as topic
                      Log in to reply
                      • Oldest to Newest
                      • Newest to Oldest
                      • Most Votes


                      Support us

                      ioBroker
                      Community Adapters
                      Donate

                      287

                      Online

                      32.7k

                      Users

                      82.6k

                      Topics

                      1.3m

                      Posts
                      Community
                      Impressum | Datenschutz-Bestimmungen | Nutzungsbedingungen | Einwilligungseinstellungen
                      ioBroker Community 2014-2025
                      logo
                      • Login

                      • Don't have an account? Register

                      • Login or register to search.
                      • First post
                        Last post
                      0
                      • Home
                      • Recent
                      • Tags
                      • Unread 0
                      • Categories
                      • Unreplied
                      • Popular
                      • GitHub
                      • Docu
                      • Hilfe