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. JavaScript
  5. Wie nutze ich eine custom class / npm Modul?

NEWS

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

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

  • Weihnachtsangebot 2025! 🎄
    BluefoxB
    Bluefox
    25
    1
    2.2k

Wie nutze ich eine custom class / npm Modul?

Scheduled Pinned Locked Moved JavaScript
65 Posts 7 Posters 7.7k Views 5 Watching
  • 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.
  • D disaster123

    @kentrath sagte in Wie nutze ich eine custom class / npm Modul?:

    @disaster123

    TypeError: Cannot read properties of undefined (reading '0') at new Wizconnect (/opt/iobroker/node_modules/iobroker.wizconnect/main.js:44:44) at Object.<anonymous> (/opt/iobroker/node_modules/iobroker.wizconnect/main.js:666:2) at Module._compile (node:internal/modules/cjs/loader:1165:14) at Object.Module._extensions..js (node:internal/modules/cjs/loader:1219:10) at Module.load (node:internal/modules/cjs/loader:1043:32) at Function.Module._load (node:internal/modules/cjs/loader:878:12) at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:81:12) at node:internal/main/run_main_module:22:47
    

    Ich habe das Modul leider recht Buggy im Netz gefunden und habe es nur angepasst. Das ursprüngliche Modul erwartet eine Netzwerkkarte unter Linux mit dem Namen eth0.

    Ich habe das mal ausgebaut. Bitte neu via github / katze installieren.

    K Offline
    K Offline
    Kentrath
    wrote on last edited by Kentrath
    #21

    @disaster123
    Du bist ja Mega :grinning:
    Die einzelnen Leuchten müssen dann händisch hinzugefügt werden oder? Ich habe mal eine eingesetzt und die lässt sich wunderbar steuern. Da warte ich jetzt über ein Jahr drauf. Die Zwischenlösung über Home Assistant war so naja...

    Jetzt kommt noch eine kleine Warnmeldung:

    State "wizconnect.0.192_168_178_123.led.sceneId" has no existing object, this might lead to an error in future versions
    
    D 1 Reply Last reply
    0
    • K Kentrath

      @disaster123
      Du bist ja Mega :grinning:
      Die einzelnen Leuchten müssen dann händisch hinzugefügt werden oder? Ich habe mal eine eingesetzt und die lässt sich wunderbar steuern. Da warte ich jetzt über ein Jahr drauf. Die Zwischenlösung über Home Assistant war so naja...

      Jetzt kommt noch eine kleine Warnmeldung:

      State "wizconnect.0.192_168_178_123.led.sceneId" has no existing object, this might lead to an error in future versions
      
      D Offline
      D Offline
      disaster123
      wrote on last edited by
      #22

      @kentrath sagte in Wie nutze ich eine custom class / npm Modul?:

      @disaster123
      Du bist ja Mega :grinning:
      Die einzelnen Leuchten müssen dann händisch hinzugefügt werden oder? Ich habe mal eine eingesetzt und die lässt sich wunderbar steuern. Da warte ich jetzt über ein Jahr drauf. Die Zwischenlösung über Home Assistant war so naja...

      Jetzt kommt noch eine kleine Warnmeldung:

      State "wizconnect.0.192_168_178_123.led.sceneId" has no existing object, this might lead to an error in future versions
      

      Danke. Die Meldung geht nach einem erneuten Neustart des Adapters weg. Ich habe keine Ahnung wieso. Dazu müsste ich wissen, das die Meldung von iobroker genau bedeutet... und das habe ich bis jetzt nicht herausgefunden.

      K 2 Replies Last reply
      0
      • D disaster123

        @kentrath sagte in Wie nutze ich eine custom class / npm Modul?:

        @disaster123
        Du bist ja Mega :grinning:
        Die einzelnen Leuchten müssen dann händisch hinzugefügt werden oder? Ich habe mal eine eingesetzt und die lässt sich wunderbar steuern. Da warte ich jetzt über ein Jahr drauf. Die Zwischenlösung über Home Assistant war so naja...

        Jetzt kommt noch eine kleine Warnmeldung:

        State "wizconnect.0.192_168_178_123.led.sceneId" has no existing object, this might lead to an error in future versions
        

        Danke. Die Meldung geht nach einem erneuten Neustart des Adapters weg. Ich habe keine Ahnung wieso. Dazu müsste ich wissen, das die Meldung von iobroker genau bedeutet... und das habe ich bis jetzt nicht herausgefunden.

        K Offline
        K Offline
        Kentrath
        wrote on last edited by Kentrath
        #23

        @disaster123

        Teilweise fehlt die Auswahl von Brightness und Color. Bei den Lampen kommt die Fehlermeldung:

        TypeError: AllDeviceAttributes.ESP21_SHTW_01 is not a function
        
        D 1 Reply Last reply
        0
        • K Kentrath

          @disaster123

          Teilweise fehlt die Auswahl von Brightness und Color. Bei den Lampen kommt die Fehlermeldung:

          TypeError: AllDeviceAttributes.ESP21_SHTW_01 is not a function
          
          D Offline
          D Offline
          disaster123
          wrote on last edited by
          #24

          @kentrath sagte in Wie nutze ich eine custom class / npm Modul?:

          @disaster123

          Teilweise fehlt die Auswahl von Brightness und Color. Bei den Lampen kommt die Fehlermeldung:

          TypeError: AllDeviceAttributes.ESP21_SHTW_01 is not a function
          

          Device ESP21_SHTW_01 war bisher nicht implementiert - bitte einmal Modul updaten. Lampe löschen und speichern. Object im Tree löschen. Lampe wieder hinzufügen.

          K 1 Reply Last reply
          1
          • D disaster123

            @kentrath sagte in Wie nutze ich eine custom class / npm Modul?:

            @disaster123

            Teilweise fehlt die Auswahl von Brightness und Color. Bei den Lampen kommt die Fehlermeldung:

            TypeError: AllDeviceAttributes.ESP21_SHTW_01 is not a function
            

            Device ESP21_SHTW_01 war bisher nicht implementiert - bitte einmal Modul updaten. Lampe löschen und speichern. Object im Tree löschen. Lampe wieder hinzufügen.

            K Offline
            K Offline
            Kentrath
            wrote on last edited by
            #25

            @disaster123

            Hat geklappt :grinning:

            1 Reply Last reply
            0
            • D disaster123

              @kentrath sagte in Wie nutze ich eine custom class / npm Modul?:

              @disaster123
              Du bist ja Mega :grinning:
              Die einzelnen Leuchten müssen dann händisch hinzugefügt werden oder? Ich habe mal eine eingesetzt und die lässt sich wunderbar steuern. Da warte ich jetzt über ein Jahr drauf. Die Zwischenlösung über Home Assistant war so naja...

              Jetzt kommt noch eine kleine Warnmeldung:

              State "wizconnect.0.192_168_178_123.led.sceneId" has no existing object, this might lead to an error in future versions
              

              Danke. Die Meldung geht nach einem erneuten Neustart des Adapters weg. Ich habe keine Ahnung wieso. Dazu müsste ich wissen, das die Meldung von iobroker genau bedeutet... und das habe ich bis jetzt nicht herausgefunden.

              K Offline
              K Offline
              Kentrath
              wrote on last edited by
              #26

              @disaster123
              Leider kommen die Meldungen

              State "wizconnect.0.192_168_178_121.led.sceneId" has no existing object, this might lead to an error in future versions
              

              auch nach mehreren Neustarts noch und "spammen" mein Protokoll voll. Hast Du eine Idee, wie wir das abstellen könnten? Vielen Dank

              D 1 Reply Last reply
              0
              • K Kentrath

                @disaster123
                Leider kommen die Meldungen

                State "wizconnect.0.192_168_178_121.led.sceneId" has no existing object, this might lead to an error in future versions
                

                auch nach mehreren Neustarts noch und "spammen" mein Protokoll voll. Hast Du eine Idee, wie wir das abstellen könnten? Vielen Dank

                D Offline
                D Offline
                disaster123
                wrote on last edited by
                #27

                @kentrath am 17.01. hieß es noch - hat geklappt. Jetzt bin ich irritiert. Welche Version nutzt du vom Adapter? Kannst du ein debug log Posten?

                K 1 Reply Last reply
                0
                • D disaster123

                  @kentrath am 17.01. hieß es noch - hat geklappt. Jetzt bin ich irritiert. Welche Version nutzt du vom Adapter? Kannst du ein debug log Posten?

                  K Offline
                  K Offline
                  Kentrath
                  wrote on last edited by
                  #28

                  @disaster123
                  Der Adapter funktioniert auch mit der Variante ESP21_SHTW_01, das meinte ich mit hat geklappt. Die Fehlermeldungen sind ja eher kosmetik als ein wirkliches Problem. Wäre trotzdem schön, die weg zu bekommen.
                  Die Version, die ich benutze, ist die vom 17.01.

                  D 1 Reply Last reply
                  0
                  • K Kentrath

                    @disaster123
                    Der Adapter funktioniert auch mit der Variante ESP21_SHTW_01, das meinte ich mit hat geklappt. Die Fehlermeldungen sind ja eher kosmetik als ein wirkliches Problem. Wäre trotzdem schön, die weg zu bekommen.
                    Die Version, die ich benutze, ist die vom 17.01.

                    D Offline
                    D Offline
                    disaster123
                    wrote on last edited by
                    #29

                    @kentrath ah alles klar. Bitte mal updaten auf die aktuelle 0.0.5 von gestern und dann ggf. mal das Debug Log posten.

                    K 1 Reply Last reply
                    0
                    • D disaster123

                      @kentrath ah alles klar. Bitte mal updaten auf die aktuelle 0.0.5 von gestern und dann ggf. mal das Debug Log posten.

                      K Offline
                      K Offline
                      Kentrath
                      wrote on last edited by
                      #30

                      @disaster123
                      Hat leider noch nicht geholfen. Ich habe auch die gesamte Instanz gelöscht und neu gemacht. Die Fehlermeldung kommt nach wie vor (siehe Zeile 2).
                      Wenn ich den Datenpunkt sceneId händisch anlege, dann wird die Meldung ausgegeben, dass string erwartet wird, aber number übermittelt wird. Der Datenpunkt steht aber auf string (siehe Zeile 1).

                      wizconnect.0 2023-01-25 23:09:30.013	info	State value to set for "wizconnect.0.192_168_178_125.led.sceneId" has to be type "string" but received type "number"
                      wizconnect.0 2023-01-25 23:09:05.030	warn	State "wizconnect.0.192_168_178_125.led.sceneId" has no existing object, this might lead to an error in future versions
                      
                      D 1 Reply Last reply
                      0
                      • K Kentrath

                        @disaster123
                        Hat leider noch nicht geholfen. Ich habe auch die gesamte Instanz gelöscht und neu gemacht. Die Fehlermeldung kommt nach wie vor (siehe Zeile 2).
                        Wenn ich den Datenpunkt sceneId händisch anlege, dann wird die Meldung ausgegeben, dass string erwartet wird, aber number übermittelt wird. Der Datenpunkt steht aber auf string (siehe Zeile 1).

                        wizconnect.0 2023-01-25 23:09:30.013	info	State value to set for "wizconnect.0.192_168_178_125.led.sceneId" has to be type "string" but received type "number"
                        wizconnect.0 2023-01-25 23:09:05.030	warn	State "wizconnect.0.192_168_178_125.led.sceneId" has no existing object, this might lead to an error in future versions
                        
                        D Offline
                        D Offline
                        disaster123
                        wrote on last edited by
                        #31

                        @kentrath wie gesagt ich brauche ein kompletten log mit dem Adapter auf Einstellung debug.

                        K 1 Reply Last reply
                        0
                        • D disaster123

                          @kentrath wie gesagt ich brauche ein kompletten log mit dem Adapter auf Einstellung debug.

                          K Offline
                          K Offline
                          Kentrath
                          wrote on last edited by
                          #32

                          @disaster123
                          Da passiert leider so gut wie nichts im log trotz Stufe debug:

                          wizconnect.0
                          2023-01-27 08:41:08.498	info	State value to set for "wizconnect.0.192_168_178_125.led.sceneId" has to be type "string" but received type "number"
                          wizconnect.0
                          2023-01-27 08:41:08.301	info	config udpip: 192.168.178.5
                          wizconnect.0
                          2023-01-27 08:41:08.300	info	config udpmac: 26:8c:05:f2:0c:a9
                          wizconnect.0
                          2023-01-27 08:41:08.300	info	config bind_ip: 0.0.0.0
                          wizconnect.0
                          2023-01-27 08:41:08.289	info	starting. Version 0.0.5 (non-npm: disaster123/ioBroker.wizconnect#ad84f06e2e5e73de575ad53b91c9d7a24d8b9384) in /opt/iobroker/node_modules/iobroker.wizconnect, node: v16.19.0, js-controller: 4.0.24
                          
                          D 1 Reply Last reply
                          0
                          • K Kentrath

                            @disaster123
                            Da passiert leider so gut wie nichts im log trotz Stufe debug:

                            wizconnect.0
                            2023-01-27 08:41:08.498	info	State value to set for "wizconnect.0.192_168_178_125.led.sceneId" has to be type "string" but received type "number"
                            wizconnect.0
                            2023-01-27 08:41:08.301	info	config udpip: 192.168.178.5
                            wizconnect.0
                            2023-01-27 08:41:08.300	info	config udpmac: 26:8c:05:f2:0c:a9
                            wizconnect.0
                            2023-01-27 08:41:08.300	info	config bind_ip: 0.0.0.0
                            wizconnect.0
                            2023-01-27 08:41:08.289	info	starting. Version 0.0.5 (non-npm: disaster123/ioBroker.wizconnect#ad84f06e2e5e73de575ad53b91c9d7a24d8b9384) in /opt/iobroker/node_modules/iobroker.wizconnect, node: v16.19.0, js-controller: 4.0.24
                            
                            D Offline
                            D Offline
                            disaster123
                            wrote on last edited by
                            #33

                            @kentrath Hast du das Loglevel auf debug gesetzt für die Instanz? Das sieht im Log nicht so aus.

                            K 1 Reply Last reply
                            0
                            • D disaster123

                              @kentrath Hast du das Loglevel auf debug gesetzt für die Instanz? Das sieht im Log nicht so aus.

                              K Offline
                              K Offline
                              Kentrath
                              wrote on last edited by
                              #34

                              @disaster123
                              Ja, habe ich.

                              D 1 Reply Last reply
                              0
                              • K Kentrath

                                @disaster123
                                Ja, habe ich.

                                D Offline
                                D Offline
                                disaster123
                                wrote on last edited by
                                #35

                                @kentrath Bitte einmal Instanz stoppen. Object 192_168_178_125 im Objekttree unter wizconnect.0 löschen. Dann Adapter wieder starten und debug anlassen.

                                K 1 Reply Last reply
                                0
                                • D disaster123

                                  @kentrath Bitte einmal Instanz stoppen. Object 192_168_178_125 im Objekttree unter wizconnect.0 löschen. Dann Adapter wieder starten und debug anlassen.

                                  K Offline
                                  K Offline
                                  Kentrath
                                  wrote on last edited by
                                  #36

                                  @disaster123

                                  wizconnect.0
                                  2023-01-27 09:15:42.258	warn	State "wizconnect.0.192_168_178_125.led.sceneId" has no existing object, this might lead to an error in future versions
                                  wizconnect.0
                                  2023-01-27 09:15:37.347	warn	State "wizconnect.0.192_168_178_125.led.dimming" has no existing object, this might lead to an error in future versions
                                  wizconnect.0
                                  2023-01-27 09:15:37.347	warn	State "wizconnect.0.192_168_178_125.led.temp" has no existing object, this might lead to an error in future versions
                                  wizconnect.0
                                  2023-01-27 09:15:37.346	warn	State "wizconnect.0.192_168_178_125.led.sceneId" has no existing object, this might lead to an error in future versions
                                  wizconnect.0
                                  2023-01-27 09:15:37.110	info	config udpip: 192.168.178.5
                                  wizconnect.0
                                  2023-01-27 09:15:37.110	info	config udpmac: 26:8c:05:f2:0c:a9
                                  wizconnect.0
                                  2023-01-27 09:15:37.110	info	config bind_ip: 0.0.0.0
                                  wizconnect.0
                                  2023-01-27 09:15:37.099	info	starting. Version 0.0.5 (non-npm: disaster123/ioBroker.wizconnect#ad84f06e2e5e73de575ad53b91c9d7a24d8b9384) in /opt/iobroker/node_modules/iobroker.wizconnect, node: v16.19.0, js-controller: 4.0.24
                                  host.IoBroker
                                  2023-01-27 09:15:36.444	info	instance system.adapter.wizconnect.0 started with pid 3317605
                                  host.IoBroker
                                  2023-01-27 09:15:36.329	info	"system.adapter.wizconnect.0" enabled
                                  
                                  D 1 Reply Last reply
                                  0
                                  • K Kentrath

                                    @disaster123

                                    wizconnect.0
                                    2023-01-27 09:15:42.258	warn	State "wizconnect.0.192_168_178_125.led.sceneId" has no existing object, this might lead to an error in future versions
                                    wizconnect.0
                                    2023-01-27 09:15:37.347	warn	State "wizconnect.0.192_168_178_125.led.dimming" has no existing object, this might lead to an error in future versions
                                    wizconnect.0
                                    2023-01-27 09:15:37.347	warn	State "wizconnect.0.192_168_178_125.led.temp" has no existing object, this might lead to an error in future versions
                                    wizconnect.0
                                    2023-01-27 09:15:37.346	warn	State "wizconnect.0.192_168_178_125.led.sceneId" has no existing object, this might lead to an error in future versions
                                    wizconnect.0
                                    2023-01-27 09:15:37.110	info	config udpip: 192.168.178.5
                                    wizconnect.0
                                    2023-01-27 09:15:37.110	info	config udpmac: 26:8c:05:f2:0c:a9
                                    wizconnect.0
                                    2023-01-27 09:15:37.110	info	config bind_ip: 0.0.0.0
                                    wizconnect.0
                                    2023-01-27 09:15:37.099	info	starting. Version 0.0.5 (non-npm: disaster123/ioBroker.wizconnect#ad84f06e2e5e73de575ad53b91c9d7a24d8b9384) in /opt/iobroker/node_modules/iobroker.wizconnect, node: v16.19.0, js-controller: 4.0.24
                                    host.IoBroker
                                    2023-01-27 09:15:36.444	info	instance system.adapter.wizconnect.0 started with pid 3317605
                                    host.IoBroker
                                    2023-01-27 09:15:36.329	info	"system.adapter.wizconnect.0" enabled
                                    
                                    D Offline
                                    D Offline
                                    disaster123
                                    wrote on last edited by
                                    #37

                                    @kentrath Sorry aber der adapter kan nicht auf debug stehen oder aber du filterst die Einträge in der Logausgabe.

                                    K 1Topf1 2 Replies Last reply
                                    0
                                    • D disaster123

                                      @kentrath Sorry aber der adapter kan nicht auf debug stehen oder aber du filterst die Einträge in der Logausgabe.

                                      K Offline
                                      K Offline
                                      Kentrath
                                      wrote on last edited by
                                      #38

                                      @disaster123
                                      Tut mir leid, das Log war tatsächlich gefiltert. Habe ich nicht gesehen :confused:

                                      wizconnect.0
                                      2023-01-27 10:14:30.312	warn	State "wizconnect.0.192_168_178_125.led.sceneId" has no existing object, this might lead to an error in future versions
                                      wizconnect.0
                                      2023-01-27 10:14:30.299	debug	Nachricht 83ff1daf-44df-48bf-86eb-9dca0cfde7ff gesendet -> 192.168.178.125 192.168.178.125 Versuch: 1
                                      wizconnect.0
                                      2023-01-27 10:14:00.339	warn	State "wizconnect.0.192_168_178_125.led.sceneId" has no existing object, this might lead to an error in future versions
                                      wizconnect.0
                                      2023-01-27 10:14:00.300	debug	Nachricht 03c2b39f-dcce-4b8c-8a89-62a38256ceb6 gesendet -> 192.168.178.125 192.168.178.125 Versuch: 1
                                      wizconnect.0
                                      2023-01-27 10:14:00.300	debug	Nachricht 286d0001-09e9-4305-9578-fed1a8d7e9ff gesendet -> 192.168.178.125 192.168.178.125 Versuch: 1
                                      wizconnect.0
                                      2023-01-27 10:14:00.299	debug	Nachricht f9922605-4af7-41c2-b87d-89d474ea3f41 gesendet -> 192.168.178.125 192.168.178.125 Versuch: 1
                                      wizconnect.0
                                      2023-01-27 10:14:00.186	debug	-> CREATE DeviceType: EVAL ESP17_SHTW9_01
                                      wizconnect.0
                                      2023-01-27 10:14:00.186	debug	-> CREATE DeviceType: ESP17_SHTW9_01
                                      wizconnect.0
                                      2023-01-27 10:14:00.179	debug	server error:Error: bind EADDRINUSE 0.0.0.0:38900 at node:dgram:359:20 at processTicksAndRejections (node:internal/process/task_queues:84:21)
                                      wizconnect.0
                                      2023-01-27 10:14:00.177	debug	-> CREATE Device: 192_168_178_125
                                      wizconnect.0
                                      2023-01-27 10:14:00.177	debug	__START -> WIZ__INIT_DEVICES [ 192.168.178.125 : Schlafzimmer ]
                                      wizconnect.0
                                      2023-01-27 10:14:00.176	info	config udpip: 192.168.178.5
                                      wizconnect.0
                                      2023-01-27 10:14:00.176	info	config udpmac: 26:8c:05:f2:0c:a9
                                      wizconnect.0
                                      2023-01-27 10:14:00.175	info	config bind_ip: 0.0.0.0
                                      wizconnect.0
                                      2023-01-27 10:14:00.161	info	starting. Version 0.0.5 (non-npm: disaster123/ioBroker.wizconnect#ad84f06e2e5e73de575ad53b91c9d7a24d8b9384) in /opt/iobroker/node_modules/iobroker.wizconnect, node: v16.19.0, js-controller: 4.0.24
                                      wizconnect.0
                                      2023-01-27 10:14:00.050	debug	States connected to redis: 127.0.0.1:9000
                                      wizconnect.0
                                      2023-01-27 10:13:59.991	debug	States create User PubSub Client
                                      wizconnect.0
                                      2023-01-27 10:13:59.991	debug	States create System PubSub Client
                                      wizconnect.0
                                      2023-01-27 10:13:59.982	debug	Redis States: Use Redis connection: 127.0.0.1:9000
                                      wizconnect.0
                                      2023-01-27 10:13:59.966	debug	Objects connected to redis: 127.0.0.1:9001
                                      wizconnect.0
                                      2023-01-27 10:13:59.963	debug	Objects client initialize lua scripts
                                      wizconnect.0
                                      2023-01-27 10:13:59.935	debug	Objects create User PubSub Client
                                      wizconnect.0
                                      2023-01-27 10:13:59.934	debug	Objects create System PubSub Client
                                      wizconnect.0
                                      2023-01-27 10:13:59.934	debug	Objects client ready ... initialize now
                                      wizconnect.0
                                      2023-01-27 10:13:59.911	debug	Redis Objects: Use Redis connection: 127.0.0.1:9001
                                      
                                      D 1 Reply Last reply
                                      0
                                      • D disaster123

                                        @kentrath Sorry aber der adapter kan nicht auf debug stehen oder aber du filterst die Einträge in der Logausgabe.

                                        1Topf1 Offline
                                        1Topf1 Offline
                                        1Topf
                                        wrote on last edited by
                                        #39

                                        @disaster123

                                        Hab mir heut aus Blödsinn eine WIZ-Glühlampe gekauft (OBI Abverkauf 1,94€) und finde auch noch deinen Adapter. Funzt auf Anhieb. Sehr geil. :grinning:

                                        1 Reply Last reply
                                        1
                                        • K Kentrath

                                          @disaster123
                                          Tut mir leid, das Log war tatsächlich gefiltert. Habe ich nicht gesehen :confused:

                                          wizconnect.0
                                          2023-01-27 10:14:30.312	warn	State "wizconnect.0.192_168_178_125.led.sceneId" has no existing object, this might lead to an error in future versions
                                          wizconnect.0
                                          2023-01-27 10:14:30.299	debug	Nachricht 83ff1daf-44df-48bf-86eb-9dca0cfde7ff gesendet -> 192.168.178.125 192.168.178.125 Versuch: 1
                                          wizconnect.0
                                          2023-01-27 10:14:00.339	warn	State "wizconnect.0.192_168_178_125.led.sceneId" has no existing object, this might lead to an error in future versions
                                          wizconnect.0
                                          2023-01-27 10:14:00.300	debug	Nachricht 03c2b39f-dcce-4b8c-8a89-62a38256ceb6 gesendet -> 192.168.178.125 192.168.178.125 Versuch: 1
                                          wizconnect.0
                                          2023-01-27 10:14:00.300	debug	Nachricht 286d0001-09e9-4305-9578-fed1a8d7e9ff gesendet -> 192.168.178.125 192.168.178.125 Versuch: 1
                                          wizconnect.0
                                          2023-01-27 10:14:00.299	debug	Nachricht f9922605-4af7-41c2-b87d-89d474ea3f41 gesendet -> 192.168.178.125 192.168.178.125 Versuch: 1
                                          wizconnect.0
                                          2023-01-27 10:14:00.186	debug	-> CREATE DeviceType: EVAL ESP17_SHTW9_01
                                          wizconnect.0
                                          2023-01-27 10:14:00.186	debug	-> CREATE DeviceType: ESP17_SHTW9_01
                                          wizconnect.0
                                          2023-01-27 10:14:00.179	debug	server error:Error: bind EADDRINUSE 0.0.0.0:38900 at node:dgram:359:20 at processTicksAndRejections (node:internal/process/task_queues:84:21)
                                          wizconnect.0
                                          2023-01-27 10:14:00.177	debug	-> CREATE Device: 192_168_178_125
                                          wizconnect.0
                                          2023-01-27 10:14:00.177	debug	__START -> WIZ__INIT_DEVICES [ 192.168.178.125 : Schlafzimmer ]
                                          wizconnect.0
                                          2023-01-27 10:14:00.176	info	config udpip: 192.168.178.5
                                          wizconnect.0
                                          2023-01-27 10:14:00.176	info	config udpmac: 26:8c:05:f2:0c:a9
                                          wizconnect.0
                                          2023-01-27 10:14:00.175	info	config bind_ip: 0.0.0.0
                                          wizconnect.0
                                          2023-01-27 10:14:00.161	info	starting. Version 0.0.5 (non-npm: disaster123/ioBroker.wizconnect#ad84f06e2e5e73de575ad53b91c9d7a24d8b9384) in /opt/iobroker/node_modules/iobroker.wizconnect, node: v16.19.0, js-controller: 4.0.24
                                          wizconnect.0
                                          2023-01-27 10:14:00.050	debug	States connected to redis: 127.0.0.1:9000
                                          wizconnect.0
                                          2023-01-27 10:13:59.991	debug	States create User PubSub Client
                                          wizconnect.0
                                          2023-01-27 10:13:59.991	debug	States create System PubSub Client
                                          wizconnect.0
                                          2023-01-27 10:13:59.982	debug	Redis States: Use Redis connection: 127.0.0.1:9000
                                          wizconnect.0
                                          2023-01-27 10:13:59.966	debug	Objects connected to redis: 127.0.0.1:9001
                                          wizconnect.0
                                          2023-01-27 10:13:59.963	debug	Objects client initialize lua scripts
                                          wizconnect.0
                                          2023-01-27 10:13:59.935	debug	Objects create User PubSub Client
                                          wizconnect.0
                                          2023-01-27 10:13:59.934	debug	Objects create System PubSub Client
                                          wizconnect.0
                                          2023-01-27 10:13:59.934	debug	Objects client ready ... initialize now
                                          wizconnect.0
                                          2023-01-27 10:13:59.911	debug	Redis Objects: Use Redis connection: 127.0.0.1:9001
                                          
                                          D Offline
                                          D Offline
                                          disaster123
                                          wrote on last edited by
                                          #40

                                          @kentrath sagte in Wie nutze ich eine custom class / npm Modul?:

                                          @disaster123
                                          Tut mir leid, das Log war tatsächlich gefiltert. Habe ich nicht gesehen :confused:

                                          wizconnect.0
                                          2023-01-27 10:14:30.312	warn	State "wizconnect.0.192_168_178_125.led.sceneId" has no existing object, this might lead to an error in future versions
                                          wizconnect.0
                                          2023-01-27 10:14:30.299	debug	Nachricht 83ff1daf-44df-48bf-86eb-9dca0cfde7ff gesendet -> 192.168.178.125 192.168.178.125 Versuch: 1
                                          wizconnect.0
                                          2023-01-27 10:14:00.339	warn	State "wizconnect.0.192_168_178_125.led.sceneId" has no existing object, this might lead to an error in future versions
                                          wizconnect.0
                                          2023-01-27 10:14:00.300	debug	Nachricht 03c2b39f-dcce-4b8c-8a89-62a38256ceb6 gesendet -> 192.168.178.125 192.168.178.125 Versuch: 1
                                          wizconnect.0
                                          2023-01-27 10:14:00.300	debug	Nachricht 286d0001-09e9-4305-9578-fed1a8d7e9ff gesendet -> 192.168.178.125 192.168.178.125 Versuch: 1
                                          wizconnect.0
                                          2023-01-27 10:14:00.299	debug	Nachricht f9922605-4af7-41c2-b87d-89d474ea3f41 gesendet -> 192.168.178.125 192.168.178.125 Versuch: 1
                                          wizconnect.0
                                          2023-01-27 10:14:00.186	debug	-> CREATE DeviceType: EVAL ESP17_SHTW9_01
                                          wizconnect.0
                                          2023-01-27 10:14:00.186	debug	-> CREATE DeviceType: ESP17_SHTW9_01
                                          wizconnect.0
                                          2023-01-27 10:14:00.179	debug	server error:Error: bind EADDRINUSE 0.0.0.0:38900 at node:dgram:359:20 at processTicksAndRejections (node:internal/process/task_queues:84:21)
                                          wizconnect.0
                                          2023-01-27 10:14:00.177	debug	-> CREATE Device: 192_168_178_125
                                          wizconnect.0
                                          2023-01-27 10:14:00.177	debug	__START -> WIZ__INIT_DEVICES [ 192.168.178.125 : Schlafzimmer ]
                                          wizconnect.0
                                          2023-01-27 10:14:00.176	info	config udpip: 192.168.178.5
                                          wizconnect.0
                                          2023-01-27 10:14:00.176	info	config udpmac: 26:8c:05:f2:0c:a9
                                          wizconnect.0
                                          2023-01-27 10:14:00.175	info	config bind_ip: 0.0.0.0
                                          wizconnect.0
                                          2023-01-27 10:14:00.161	info	starting. Version 0.0.5 (non-npm: disaster123/ioBroker.wizconnect#ad84f06e2e5e73de575ad53b91c9d7a24d8b9384) in /opt/iobroker/node_modules/iobroker.wizconnect, node: v16.19.0, js-controller: 4.0.24
                                          wizconnect.0
                                          2023-01-27 10:14:00.050	debug	States connected to redis: 127.0.0.1:9000
                                          wizconnect.0
                                          2023-01-27 10:13:59.991	debug	States create User PubSub Client
                                          wizconnect.0
                                          2023-01-27 10:13:59.991	debug	States create System PubSub Client
                                          wizconnect.0
                                          2023-01-27 10:13:59.982	debug	Redis States: Use Redis connection: 127.0.0.1:9000
                                          wizconnect.0
                                          2023-01-27 10:13:59.966	debug	Objects connected to redis: 127.0.0.1:9001
                                          wizconnect.0
                                          2023-01-27 10:13:59.963	debug	Objects client initialize lua scripts
                                          wizconnect.0
                                          2023-01-27 10:13:59.935	debug	Objects create User PubSub Client
                                          wizconnect.0
                                          2023-01-27 10:13:59.934	debug	Objects create System PubSub Client
                                          wizconnect.0
                                          2023-01-27 10:13:59.934	debug	Objects client ready ... initialize now
                                          wizconnect.0
                                          2023-01-27 10:13:59.911	debug	Redis Objects: Use Redis connection: 127.0.0.1:9001
                                          

                                          Sorry deine Antwort ist scheinbar untergegangern. Erstes Problem ist, dass laut Log bereits ein anderer Dienst an Port 38900 lauscht. Damit funktioniert der Adapter nicht richtig.

                                          Siehe:

                                          2023-01-27 10:14:00.179	debug	server error:Error: bind EADDRINUSE 0.0.0.0:38900 at node:dgram:359:20 at processTicksAndRejections (node:internal/process/task_queues:84:21)
                                          
                                          
                                          K 1 Reply Last reply
                                          0
                                          Reply
                                          • Reply as topic
                                          Log in to reply
                                          • Oldest to Newest
                                          • Newest to Oldest
                                          • Most Votes


                                          Support us

                                          ioBroker
                                          Community Adapters
                                          Donate

                                          689

                                          Online

                                          32.6k

                                          Users

                                          82.2k

                                          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