Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. Skripten / Logik
    4. Skript LOWBAT

    NEWS

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

    • ioBroker goes Matter ... Matter Adapter in Stable

    • Monatsrückblick - April 2025

    Skript LOWBAT

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

      10:30:00.016	warn	javascript.0 (28564) at script.js.common.Lowbat:20:10
      10:30:00.016	warn	javascript.0 (28564) at countLowbat (script.js.common.Lowbat:18:24)
      10:30:00.016	warn	javascript.0 (28564) at Object.<anonymous> (script.js.common.Lowbat:46:4)
      10:30:00.017	warn	javascript.0 (28564) at script.js.common.Lowbat:21:19
      10:30:00.017	warn	javascript.0 (28564) at countLowbat (script.js.common.Lowbat:18:24)
      10:30:00.017	warn	javascript.0 (28564) at Object.<anonymous> (script.js.common.Lowbat:46:4)
      10:30:00.018	info	javascript.0 (28564) script.js.common.Lowbat: Geräte Nr. 101: undefined: null
      10:30:00.018	warn	javascript.0 (28564) at script.js.common.Lowbat:20:10
      10:30:00.018	warn	javascript.0 (28564) at countLowbat (script.js.common.Lowbat:18:24)
      10:30:00.018	warn	javascript.0 (28564) at Object.<anonymous> (script.js.common.Lowbat:46:4)
      10:30:00.019	warn	javascript.0 (28564) at script.js.common.Lowbat:21:19
      10:30:00.019	warn	javascript.0 (28564) at countLowbat (script.js.common.Lowbat:18:24)
      10:30:00.019	warn	javascript.0 (28564) at Object.<anonymous> (script.js.common.Lowbat:46:4)
      10:30:00.020	info	javascript.0 (28564) script.js.common.Lowbat: Geräte Nr. 102: undefined: null
      10:30:00.021	warn	javascript.0 (28564) at script.js.common.Lowbat:20:10
      10:30:00.021	warn	javascript.0 (28564) at countLowbat (script.js.common.Lowbat:18:24)
      10:30:00.021	warn	javascript.0 (28564) at Object.<anonymous> (script.js.common.Lowbat:46:4)
      10:30:00.022	warn	javascript.0 (28564) at script.js.common.Lowbat:21:19
      10:30:00.022	warn	javascript.0 (28564) at countLowbat (script.js.common.Lowbat:18:24)
      10:30:00.022	warn	javascript.0 (28564) at Object.<anonymous> (script.js.common.Lowbat:46:4)
      10:30:00.023	info	javascript.0 (28564) script.js.common.Lowbat: Geräte Nr. 103: undefined: null
      10:30:00.023	warn	javascript.0 (28564) at script.js.common.Lowbat:20:10
      10:30:00.023	warn	javascript.0 (28564) at countLowbat (script.js.common.Lowbat:18:24)
      10:30:00.023	warn	javascript.0 (28564) at Object.<anonymous> (script.js.common.Lowbat:46:4)
      10:30:00.024	warn	javascript.0 (28564) at script.js.common.Lowbat:21:19
      10:30:00.024	warn	javascript.0 (28564) at countLowbat (script.js.common.Lowbat:18:24)
      10:30:00.024	warn	javascript.0 (28564) at Object.<anonymous> (script.js.common.Lowbat:46:4)
      10:30:00.024	info	javascript.0 (28564) script.js.common.Lowbat: Geräte Nr. 104: undefined: null
      10:30:00.025	warn	javascript.0 (28564) at script.js.common.Lowbat:20:10
      10:30:00.025	warn	javascript.0 (28564) at countLowbat (script.js.common.Lowbat:18:24)
      10:30:00.025	warn	javascript.0 (28564) at Object.<anonymous> (script.js.common.Lowbat:46:4)
      10:30:00.026	warn	javascript.0 (28564) at script.js.common.Lowbat:21:19
      10:30:00.026	warn	javascript.0 (28564) at countLowbat (script.js.common.Lowbat:18:24)
      10:30:00.026	warn	javascript.0 (28564) at Object.<anonymous> (script.js.common.Lowbat:46:4)
      10:30:00.026	info	javascript.0 (28564) script.js.common.Lowbat: Geräte Nr. 105: undefined: null
      10:30:00.026	info	javascript.0 (28564) script.js.common.Lowbat: Text:
      10:30:00.026	info	javascript.0 (28564) script.js.common.Lowbat: Anzahl Geräte: 106 # davon LOWBAT erkannt: 0
      
      paul53 1 Reply Last reply Reply Quote 0
      • paul53
        paul53 @deifel last edited by

        @deifel Welche IDs gibt das Test-Skript mit den Nummern 101 bis 105 aus ?

        1 Reply Last reply Reply Quote 0
        • D
          deifel last edited by

          @paul53 said in Skript LOWBAT:

          $('channel[state.id=*0.LOWBAT]').each(function(id, i) { if(i > 82) log(i + ': ' + id); });

          10:35:50.771	info	javascript.0 (28564) script.js.common.TEST: 100: hm-rpc.0.QEQ0087728.0.LOWBAT
          10:35:50.771	info	javascript.0 (28564) script.js.common.TEST: 101: hm-rpc.1.CUX2801001.0.LOWBAT
          10:35:50.771	info	javascript.0 (28564) script.js.common.TEST: 102: hm-rpc.1.CUX4000001.0.LOWBAT
          10:35:50.771	info	javascript.0 (28564) script.js.common.TEST: 103: hm-rpc.1.CUX9000002.0.LOWBAT
          10:35:50.771	info	javascript.0 (28564) script.js.common.TEST: 104: hm-rpc.1.CUX9000003.0.LOWBAT
          10:35:50.771	info	javascript.0 (28564) script.js.common.TEST: 105: hm-rpc.1.CUX9000004.0.LOWBAT
          
          paul53 1 Reply Last reply Reply Quote 0
          • D
            deifel last edited by

            Hab die Datenpunkte gefunden. Indicator.lowbat heißen die.
            Soll / muss ich die entfernen?

            1 Reply Last reply Reply Quote 0
            • paul53
              paul53 @deifel last edited by

              @deifel Erweitere mal den $Selector:

              $('channel[state.id=hm-rpc.0*0.LOWBAT]').each(function(id, i) {
                 if(i > 82) log(i + ': ' + id);
              });
              
              1 Reply Last reply Reply Quote 0
              • D
                deifel last edited by

                Damit bekomme ich die CUXD-Geräte nicht mehr angezeigt, nur die "korrekten" Geräte.

                paul53 1 Reply Last reply Reply Quote 0
                • paul53
                  paul53 @deifel last edited by

                  @deifel Dann übernehme die Erweiterung in das Lowbat-Skript.

                  1 Reply Last reply Reply Quote 0
                  • D
                    deifel last edited by

                    Ich danke Dir! Wenn ich das so übernehme, dann fehlen mir leider die Geräte aus der HM-IP-Instanz 😕

                    1 Reply Last reply Reply Quote 0
                    • D
                      deifel last edited by

                      Kannst Du mir sagen, wie ich die Geräte aus meiner HM-IP-Instanz (rpc.2) noch dazu bekomme?
                      Diese werden nicht gefunden. Die Datenpunkte LOWBAT sind aber vorhanden.
                      Vielen DANK!

                      dslraser 1 Reply Last reply Reply Quote 0
                      • paul53
                        paul53 @deifel last edited by

                        @deifel sagte:

                        CUXD-Geräte, obwohl diese nicht im Gewerk "Batteriebetrieb" sind.

                        Dann erweitere den $Selector anstelle von "hm-rpc.0" um das Gewerk (Schreibweise groß/klein in der enum-ID beachten)

                        $('channel[state.id=*0.LOWBAT](functions=Batteriebetrieb)').each(function(id, i) {
                           log(i + ': ' + id);
                        });
                        

                        Werden dann alle "richtigen" IDs geloggt ?

                        1 Reply Last reply Reply Quote 0
                        • dslraser
                          dslraser Forum Testing Most Active @deifel last edited by dslraser

                          @deifel sagte in Skript LOWBAT:

                          Kannst Du mir sagen, wie ich die Geräte aus meiner HM-IP-Instanz (rpc.2) noch dazu bekomme?
                          Diese werden nicht gefunden. Die Datenpunkte LOWBAT sind aber vorhanden.

                          Bei mir heißen die HM-IP LOW_BAT und nicht LOWBAT.

                          1 Reply Last reply Reply Quote 0
                          • D
                            deifel last edited by

                            Danke - das hab ich versucht. Eigenartigerweise wird damit nichts gefunden 😞
                            Ich verzweifle noch.
                            "Batteriebetrieb" ist korrekt geschrieben.
                            Die Datenpunkte unter den IP-Geräten heißen allerdings "LOW_BAT".

                            Mit dem Selektor :

                            $('channel[state.id=*0.LOWBAT](functions=Batteriebetrieb)').each(function(id, i) {
                               log(i + ': ' + id);
                            });
                            

                            bekomme ich kein Ergebnis (0 Geräte).

                            Mit dem Selektor:

                            $('channel[state.id=hm-rpc.0*0.LOWBAT]').each(function(id, i) {
                            

                            bekomme ich nur die von der normalen HM-Instanz.

                            und mit dem Selektor:

                            $('channel[state.id=*0.LOWBAT]').each(function(id, i) {
                            
                            

                            bekomme ich die normalen und die CuxD - aber auch keine HM-IP-Geräte

                            1 Reply Last reply Reply Quote 0
                            • D
                              deifel last edited by

                              $('channel[state.id=hm-rpc.*0.LOW*](functions=Batteriebetrieb)').each(function(id, i) {
                                 if(i > 1) log(i + ': ' + id);
                              });
                              

                              Gibt mir alle aus, also inkl. HMIP und auch den CUX-D-Geräten. Wenn ich jetzt noch die CUXD weg bekomme, dann wärs perfekt.

                              paul53 1 Reply Last reply Reply Quote 0
                              • paul53
                                paul53 @deifel last edited by

                                @deifel sagte:

                                Wenn ich jetzt noch die CUXD weg bekomme

                                $('channel[state.id=hm-rpc.*0.LOW*](functions=Batteriebetrieb)').each(function(id, i) {
                                   if(id.indexOf('CUX') == -1) log(i + ': ' + id);
                                });
                                
                                1 Reply Last reply Reply Quote 0
                                • D
                                  deifel last edited by

                                  Leider nein, damit findet er nichts 😞

                                  dslraser paul53 2 Replies Last reply Reply Quote 0
                                  • dslraser
                                    dslraser Forum Testing Most Active @deifel last edited by

                                    @deifel
                                    Ich bin unterwegs und am Handy, deshalb bekomme ich das Script nicht kopiert, aber hier ein Screenshot vom Selektor, wie es bei mir funktioniert.

                                    Screenshot_20191126-114824_Chrome.jpg

                                    1 Reply Last reply Reply Quote 0
                                    • paul53
                                      paul53 @deifel last edited by

                                      @deifel sagte:

                                      damit findet er nichts

                                      Ohne functions ?

                                      $('channel[state.id=hm-rpc.*0.LOW*]').each(function(id, i) {
                                         if(id.indexOf('CUX') == -1) log(i + ': ' + id);
                                      });
                                      
                                      1 Reply Last reply Reply Quote 0
                                      • D
                                        deifel last edited by

                                        Danke Euch Beiden! Es klappt jetzt mit beiden Varianten. Wobei evtl. das von dslraser sicherer ist, da es nicht nur noch low* abfragt - keine Ahnung, was in Zukunft sonst noch "low" wird 😉

                                        Vielen Dank für die tatkräftige Unterstützung!!!

                                        1 Reply Last reply Reply Quote 0
                                        • D
                                          deifel last edited by

                                          Kleine Ergänzung: Bei der Lösung von dslraser werden die cux-Geräte gefunden und eine Warnung angezeigt...
                                          Ich lass es jetzt trotzdem so drin

                                          paul53 1 Reply Last reply Reply Quote 0
                                          • paul53
                                            paul53 @deifel last edited by

                                            @deifel sagte:

                                            werden die cux-Geräte gefunden

                                            Es hätte mich auch sehr gewundert, wenn nicht.

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

                                            Support us

                                            ioBroker
                                            Community Adapters
                                            Donate

                                            845
                                            Online

                                            31.7k
                                            Users

                                            79.8k
                                            Topics

                                            1.3m
                                            Posts

                                            44
                                            201
                                            39712
                                            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