Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. Skripten / Logik
    4. [gelöst] Zwave2 - Per Script Interview bei Node auslösen

    NEWS

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

    • ioBroker goes Matter ... Matter Adapter in Stable

    • Monatsrückblick - April 2025

    [gelöst] Zwave2 - Per Script Interview bei Node auslösen

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

      Hallo,

      gibt es eine Möglich beim Zwave2 Adapter einzelne (oder auch alle) Nodes per Script zum Interview zu bewegen?

      Im Adapter kann man das ja manuell machen, aber geht das auch per Script?

      Hintergrund:
      Ich habe ein Türschloss, dass mir die Batterie immer mit 100% anzeigt, bis ich das Interview ausführe, dann wird mir die korrekte Prozentzahl angezeigt.
      Hätte das halt 1x pro Woche damit aktualisiert.

      Danke euch 🙂

      P.S.: Für Alternativen bin ich natürlich immer zu haben 😉

      arteck 1 Reply Last reply Reply Quote 0
      • arteck
        arteck Developer Most Active @Plasmachef last edited by

        @Plasmachef welches Türschloss ist es ??

        damit @AlCalzone es sich anschauen kann

        Plasmachef 1 Reply Last reply Reply Quote 0
        • Plasmachef
          Plasmachef @arteck last edited by

          @arteck
          Es handelt sich um Danalock V3
          Danke für's Kümmern

          AlCalzone 1 Reply Last reply Reply Quote 0
          • AlCalzone
            AlCalzone Developer @Plasmachef last edited by AlCalzone

            @plasmachef Ganzes Interview ist ziemlicher Overkill. So kannst du z.B. nur die Batterie auslesen:

            sendTo(
            	"zwave2.0",
            	"sendCommand",
            	{
            		nodeId: 17, 					// The target node
            		endpoint: 0, 					// The target endpoint (optional)
            		commandClass: "Battery", 	// Which command class to use
            		command: "get", 				// Which command should be sent
            	},
            	({ error, result }) => {
            		if (error) {
            			log(error, "error");
            		} else {
            			// Prints {"level": 99, /* ... */}
            			log(JSON.stringify(result));
            		}
            	},
            );
            

            Mit dem Ergebnis (Zeile 11-17) brauchst du nix machen, der Wert wird automatisch aktualisiert.

            Zeile 5 musst du noch anpassen, um die richtige Node-ID anzufragen.

            Plasmachef 2 Replies Last reply Reply Quote 1
            • Plasmachef
              Plasmachef @AlCalzone last edited by

              @alcalzone
              herzlichen dank!
              werde es zeitnah verproben 🙂

              1 Reply Last reply Reply Quote 0
              • Plasmachef
                Plasmachef @AlCalzone last edited by

                @alcalzone
                klappt super!
                herzlichen Dank und schönen Tag 🙂

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

                Support us

                ioBroker
                Community Adapters
                Donate

                934
                Online

                31.6k
                Users

                79.6k
                Topics

                1.3m
                Posts

                blockly monitoring
                3
                6
                261
                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