Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. Error/Bug
    4. Zigbee Aktor nicht alle Kanäle steuerbar

    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

    Zigbee Aktor nicht alle Kanäle steuerbar

    This topic has been deleted. Only users with topic management privileges can see it.
    • M
      McBeath @Asgothian last edited by McBeath

      @asgothian sagte in Zigbee Aktor nicht alle Kanäle steuerbar:

      @mcbeath du kannst folgendes versuchen:

      • speichere den Code der im Spoiler angegeben ist als TZ3210_c7nc9w3c.js unter /opt/iobroker/iobroker-data/zigbee_0 ab
      • trage in der Konfiguration des Zigbee-Adapters als 'externen Konverter' den Dateinamen ein (TZ3210_c7nc9w3c.js)
      • starte den Adapter neu und schau im Log nach ob es Meldungen gibt zu dieser Datei. Wenn ja, bitte hier posten.

      A.

      Nachtrag: das ganze ohne Gewähr. Da ich das Gerät nicht habe kann ich das nicht testen.

      import fz from '../converters/fromZigbee';
      import tz from '../converters/toZigbee';
      import * as exposes from '../lib/exposes';
      import {deviceEndpoints, onOff} from '../lib/modernExtend';
      import * as reporting from '../lib/reporting';
      import * as tuya from '../lib/tuya';
      import {DefinitionWithExtend} from '../lib/types';
      
      const e = exposes.presets;
      const ea = exposes.access;
      
      const definitions = [
         {
             fingerprint: [{modelID: 'TS011F', manufacturerName: '_TZ3210_c7nc9w3c'}],
             model: 'WP30-EU',
             description: 'Power cord 4 sockets EU (with power monitoring)',
             vendor: 'LELLKI',
             fromZigbee: [fz.on_off_force_multiendpoint, fz.electrical_measurement, fz.metering, fz.ignore_basic_report, tuya.fz.power_outage_memory],
             toZigbee: [tz.on_off, tuya.tz.power_on_behavior_1],
             configure: async (device, coordinatorEndpoint) => {
                 const endpoint = device.getEndpoint(1);
                 await tuya.configureMagicPacket(device, coordinatorEndpoint);
                 for (const ep of [1, 2, 3]) {
                     await reporting.bind(device.getEndpoint(ep), coordinatorEndpoint, ['genOnOff']);
                     await reporting.onOff(device.getEndpoint(ep));
                 }
                 endpoint.saveClusterAttributeKeyValue('haElectricalMeasurement', {acCurrentDivisor: 1000, acCurrentMultiplier: 1});
                 endpoint.saveClusterAttributeKeyValue('seMetering', {divisor: 100, multiplier: 1});
                 device.save();
             },
             options: [exposes.options.measurement_poll_interval()],
             exposes: [
                 e.switch().withEndpoint('l1'),
                 e.switch().withEndpoint('l2'),
                 e.switch().withEndpoint('l3'),
                 e.power(),
                 e.current(),
                 e.voltage(),
                 e.energy(),
                 e.enum('power_outage_memory', ea.ALL, ['on', 'off', 'restore']).withDescription('Recover state after power outage'),
             ],
             endpoint: (device) => {
                 return {l1: 1, l2: 2, l3: 3};
             },
             onEvent: (type, data, device, options) => tuya.onEventMeasurementPoll(type, data, device, options),
         },
      ];
      
      export default definitions;
      module.exports = definitions;
      
      

      Das hab ich so abgearbeitet mit diesem Ergebnis
      Screenshot_20250201_233556_Samsung Internet.jpg

      TZ3210_c7nc9w3c.js
      Ich danke dir schon einmal, das du dich meinem Problem annimmst.😳 👏

      Asgothian 1 Reply Last reply Reply Quote 0
      • Asgothian
        Asgothian Developer @McBeath last edited by

        @mcbeath Logs bitte nicht als Screenshot - das können meine alten Augen nicht lesen. Text (in code tags (</>) macht alles viel einfacher.

        Bitte die ' import' am Anfang nach dem folgenden Muster anpassen:

        aus

        import <a> from <b>;
        

        wird

        const <a> = require(<b>);
        

        Dabei beachten das die Code-Schnipsel * as wegfallen, sprich aus

        import * as exposes from '../lib/exposes';
        

        wird

        const exposes = require('../lib/exposes');
        

        A.

        M 1 Reply Last reply Reply Quote 0
        • M
          McBeath @Asgothian last edited by McBeath

          @asgothian
          Ich denke ich habe deine Anleitung korrekt umgesetzt.

          const fz = require('../converters/fromZigbee');
          const tz = require('../converters/toZigbee');
          const exposes = require('../lib/exposes');
          const {deviceEndpoints, onOff} = require('../lib/modernExtend');
          const reporting = require('../lib/reporting');
          const tuya = require('../lib/tuya');
          const {DefinitionWithExtend} = require('../lib/types');
          

          Ergebnis folgt... 👍

          Edit:
          Neue Fehlermeldung:

          zigbee.0
          	2025-02-02 13:15:01.411	info	0xa4c138ec5f5abc82 (addr 29562): TS011F_plug_1 - Tuya Smart plug (with power monitoring) (Router)
          zigbee.0
          	2025-02-02 13:15:01.410	info	0xa4c1383751fb0da3 (addr 5952): TS011F_plug_1 - Tuya Smart plug (with power monitoring) (Router)
          zigbee.0
          	2025-02-02 13:15:01.408	info	0xa4c138309c89ab50 (addr 28969): TS011F_plug_1 - Tuya Smart plug (with power monitoring) (Router)
          zigbee.0
          	2025-02-02 13:15:01.407	info	0xa4c138c700eed6ce (addr 51531): TS0201 - Tuya Temperature & humidity sensor with display (EndDevice)
          zigbee.0
          	2025-02-02 13:15:01.404	info	0x282c02bfffeee4ec (addr 26254): 3RVS01031Z - Third Reality Zigbee vibration sensor (EndDevice)
          zigbee.0
          	2025-02-02 13:15:01.379	info	Currently 6 devices are joined:
          zigbee.0
          	2025-02-02 13:15:01.367	info	--> transmitPower : normal
          zigbee.0
          	2025-02-02 13:15:01.366	info	Unable to disable LED, unsupported function.
          zigbee.0
          	2025-02-02 13:15:01.366	info	Coordinator firmware version: {"type":"zStack3x0","meta":{"transportrev":2,"product":1,"majorrel":2,"minorrel":7,"maintrel":1,"revision":20240710}}
          zigbee.0
          	2025-02-02 13:14:59.863	info	Installed Version: iobroker.zigbee@1.10.14
          zigbee.0
          	2025-02-02 13:14:59.638	info	Starting Zigbee npm ...
          zigbee.0
          	2025-02-02 13:14:59.636	info	delete old Backup files. keep only last 10
          zigbee.0
          	2025-02-02 13:14:59.576	error	Unable to apply converter from module: /opt/iobroker/iobroker-data/zigbee_0/TZ3210_c7nc9w3c.js - the code does not run: SyntaxError: Unexpected token 'export'
          zigbee.0
          	2025-02-02 13:14:59.572	info	Apply converter from module: /opt/iobroker/iobroker-data/zigbee_0/TZ3210_c7nc9w3c.js
          zigbee.0
          	2025-02-02 13:14:59.539	info	starting. Version 1.10.14 in /opt/iobroker/node_modules/iobroker.zigbee, node: v18.18.2, js-controller: 7.0.6
          zigbee.0
          	2025-02-02 13:14:52.803	info	Terminated (ADAPTER_REQUESTED_TERMINATION): Without reason
          zigbee.0
          	2025-02-02 13:14:52.801	info	terminating
          zigbee.0
          	2025-02-02 13:14:52.302	info	Zigbee: disabling joining new devices.
          zigbee.0
          	2025-02-02 13:14:52.300	info	cleaned everything up...
          zigbee.0
          	2025-02-02 13:14:52.299	info	Got terminate signal TERMINATE_YOURSELF
          
          Asgothian 1 Reply Last reply Reply Quote 0
          • Asgothian
            Asgothian Developer @McBeath last edited by

            @mcbeath bitte aus

            export default definitions;
            

            dieses machen:

            //export default definitions;
            

            A.

            M 1 Reply Last reply Reply Quote 0
            • M
              McBeath @Asgothian last edited by

              @asgothian
              Jetzt kann er scheinbar was nicht finden..

              zigbee.0
              	2025-02-02 17:15:37.213	info	Currently 6 devices are joined:
              zigbee.0
              	2025-02-02 17:15:37.198	info	--> transmitPower : normal
              zigbee.0
              	2025-02-02 17:15:37.198	info	Unable to disable LED, unsupported function.
              zigbee.0
              	2025-02-02 17:15:37.197	info	Coordinator firmware version: {"type":"zStack3x0","meta":{"transportrev":2,"product":1,"majorrel":2,"minorrel":7,"maintrel":1,"revision":20240710}}
              zigbee.0
              	2025-02-02 17:15:35.723	info	Installed Version: iobroker.zigbee@1.10.14
              zigbee.0
              	2025-02-02 17:15:35.498	info	Starting Zigbee npm ...
              zigbee.0
              	2025-02-02 17:15:35.497	info	delete old Backup files. keep only last 10
              zigbee.0
              	2025-02-02 17:15:35.437	error	Unable to apply converter from module: /opt/iobroker/iobroker-data/zigbee_0/TZ3210_c7nc9w3c.js - the code does not run: Error: Cannot find module '../lib/modernExtend'Require stack:- /opt/iobroker/node_modules/iobroker.zigbee/main.js
              zigbee.0
              	2025-02-02 17:15:35.434	info	Apply converter from module: /opt/iobroker/iobroker-data/zigbee_0/TZ3210_c7nc9w3c.js
              zigbee.0
              	2025-02-02 17:15:35.402	info	starting. Version 1.10.14 in /opt/iobroker/node_modules/iobroker.zigbee, node: v18.18.2, js-controller: 7.0.6
              zigbee.0
              	2025-02-02 17:15:28.639	info	Terminated (ADAPTER_REQUESTED_TERMINATION): Without reason
              zigbee.0
              	2025-02-02 17:15:28.638	info	terminating
              zigbee.0
              	2025-02-02 17:15:28.139	info	Zigbee: disabling joining new devices.
              zigbee.0
              	2025-02-02 17:15:28.138	info	cleaned everything up...
              zigbee.0
              	2025-02-02 17:15:28.135	info	Got terminate signal TERMINATE_YOURSELF
              
              Asgothian 1 Reply Last reply Reply Quote 0
              • Asgothian
                Asgothian Developer @McBeath last edited by

                @mcbeath versuch mal das require davon auszukommentieren. Ich glaube das braucht der nicht. (// an den Anfang der Zeile)

                A.

                M 1 Reply Last reply Reply Quote 0
                • M
                  McBeath @Asgothian last edited by

                  @asgothian

                  const fz = require('../converters/fromZigbee');
                  const tz = require('../converters/toZigbee');
                  const exposes = require('../lib/exposes');
                  //const {deviceEndpoints, onOff} = require('../lib/modernExtend');
                  const reporting = require('../lib/reporting');
                  const tuya = require('../lib/tuya');
                  const {DefinitionWithExtend} = require('../lib/types');
                  

                  Ergebnis:

                  zigbee.0
                  	2025-02-02 18:45:07.995	info	Coordinator firmware version: {"type":"zStack3x0","meta":{"transportrev":2,"product":1,"majorrel":2,"minorrel":7,"maintrel":1,"revision":20240710}}
                  zigbee.0
                  	2025-02-02 18:45:06.521	info	Installed Version: iobroker.zigbee@1.10.14
                  zigbee.0
                  	2025-02-02 18:45:06.239	info	Starting Zigbee npm ...
                  zigbee.0
                  	2025-02-02 18:45:06.237	info	delete old Backup files. keep only last 10
                  zigbee.0
                  	2025-02-02 18:45:06.174	error	Unable to apply converter from module: /opt/iobroker/iobroker-data/zigbee_0/TZ3210_c7nc9w3c.js - the code does not run: Error: Cannot find module '../lib/types'Require stack:- /opt/iobroker/node_modules/iobroker.zigbee/main.js
                  zigbee.0
                  	2025-02-02 18:45:06.170	info	Apply converter from module: /opt/iobroker/iobroker-data/zigbee_0/TZ3210_c7nc9w3c.js
                  
                  Asgothian 1 Reply Last reply Reply Quote 0
                  • Asgothian
                    Asgothian Developer @McBeath last edited by

                    @mcbeath auch auskommentieren. (das hättest du auch selber schon probieren können.. die Fehlermeldung ist die gleiche - da hat er was nicht gefunden)

                    M 1 Reply Last reply Reply Quote 0
                    • M
                      McBeath @Asgothian last edited by McBeath

                      @asgothian
                      In anbetracht, das ich 0,0 Ahnung habe, was ich hier mache, dachte ich es wäre besser nur nach Anleitung zu arbeiten. 😧

                      ebensalls entfernt:

                      const fz = require('../converters/fromZigbee');
                      const tz = require('../converters/toZigbee');
                      const exposes = require('../lib/exposes');
                      //const {deviceEndpoints, onOff} = require('../lib/modernExtend');
                      const reporting = require('../lib/reporting');
                      const tuya = require('../lib/tuya');
                      //const {DefinitionWithExtend} = require('../lib/types');
                      

                      Jetzt läuft es! 😊
                      das Objekt "state" habe ich manuell gelöscht, war vorher I1 und gab fehler raus.
                      I2 und I3 funktionieren jetzt auch. Muss nur noch die Energiemessung checken, dann ist alles TOP! 👍 👏

                      zigbee.0
                      	2025-02-02 19:16:19.520	error	No state available for 'WP30-EU' with key 'state'
                      zigbee.0
                      	2025-02-02 19:15:42.201	info	debug devices set to []
                      zigbee.0
                      	2025-02-02 19:15:42.109	warn	download icon from https://www.zigbee2mqtt.io/images/devices/WP30-EU.png saved into /opt/iobroker/node_modules/iobroker.zigbee/admin/img/WP30-EU.png
                      zigbee.0
                      	2025-02-02 19:15:42.096	info	Zigbee started
                      zigbee.0
                      	2025-02-02 19:15:42.096	info	0xa4c138afd9b5dc56 (addr 44048): WP30-EU - LELLKI Power cord 4 sockets EU (with power monitoring) (Router)
                      zigbee.0
                      	2025-02-02 19:15:42.094	info	0xa4c138ec5f5abc82 (addr 29562): TS011F_plug_1 - Tuya Smart plug (with power monitoring) (Router)
                      zigbee.0
                      	2025-02-02 19:15:42.093	info	0xa4c1383751fb0da3 (addr 5952): TS011F_plug_1 - Tuya Smart plug (with power monitoring) (Router)
                      zigbee.0
                      	2025-02-02 19:15:42.091	info	0xa4c138309c89ab50 (addr 28969): TS011F_plug_1 - Tuya Smart plug (with power monitoring) (Router)
                      zigbee.0
                      	2025-02-02 19:15:42.090	info	0xa4c138c700eed6ce (addr 51531): TS0201 - Tuya Temperature & humidity sensor with display (EndDevice)
                      zigbee.0
                      	2025-02-02 19:15:42.088	info	0x282c02bfffeee4ec (addr 26254): 3RVS01031Z - Third Reality Zigbee vibration sensor (EndDevice)
                      zigbee.0
                      	2025-02-02 19:15:42.063	info	Currently 6 devices are joined:
                      zigbee.0
                      	2025-02-02 19:15:42.051	info	--> transmitPower : normal
                      zigbee.0
                      	2025-02-02 19:15:42.051	info	Unable to disable LED, unsupported function.
                      zigbee.0
                      	2025-02-02 19:15:42.050	info	Coordinator firmware version: {"type":"zStack3x0","meta":{"transportrev":2,"product":1,"majorrel":2,"minorrel":7,"maintrel":1,"revision":20240710}}
                      zigbee.0
                      	2025-02-02 19:15:40.553	info	Installed Version: iobroker.zigbee@1.10.14
                      zigbee.0
                      	2025-02-02 19:15:40.294	info	Starting Zigbee npm ...
                      zigbee.0
                      	2025-02-02 19:15:40.293	info	delete old Backup files. keep only last 10
                      zigbee.0
                      	2025-02-02 19:15:40.235	info	Apply converter from module: /opt/iobroker/iobroker-data/zigbee_0/TZ3210_c7nc9w3c.js
                      

                      Energiemessung funktioniert auch noch von hier aus alles tip top.
                      👏 👏

                      Asgothian 1 Reply Last reply Reply Quote 0
                      • Asgothian
                        Asgothian Developer @McBeath last edited by

                        @mcbeath sagte in Zigbee Aktor nicht alle Kanäle steuerbar:

                        Jetzt läuft es!
                        das Objekt "state" habe ich manuell gelöscht, war vorher I1 und gab fehler raus.
                        I2 und I3 funktionieren jetzt auch. Muss nur noch die Energiemessung checken, dann ist alles TOP!

                        für die Zukunft - keine Objekte im Zigbee Objektbaum manuell löschen - dazu gibt es im Adapter einen Button "state cleanup". Der löscht alles was durch Anpassung von Device-Definitionen so nicht mehr unterstützt wird.

                        A.

                        M 1 Reply Last reply Reply Quote 0
                        • M
                          McBeath @Asgothian last edited by

                          @asgothian
                          Okay, war bisher auch das erste mal. 😲

                          Wo versteckt sich den der clean up button?
                          Bin scheinbar zu blöd ihn zu finden, hab gerade schon mehrfach alles durchsucht... ich bin blind 😵

                          Asgothian 1 Reply Last reply Reply Quote 0
                          • Asgothian
                            Asgothian Developer @McBeath last edited by

                            @mcbeath Screenshot 2024-11-27 at 15.48.59.png

                            Homoran M 2 Replies Last reply Reply Quote 0
                            • Homoran
                              Homoran Global Moderator Administrators @Asgothian last edited by

                              @asgothian sagte in Zigbee Aktor nicht alle Kanäle steuerbar:

                              @mcbeath Screenshot 2024-11-27 at 15.48.59.png

                              nur als Anregung:
                              kann man da ein anderes Icon nehmen?
                              Auf den Kacheln bedeutet das reconfigure.
                              Ich hätte hier erwartet: reconfigure all

                              Asgothian 1 Reply Last reply Reply Quote 0
                              • M
                                McBeath @Asgothian last edited by

                                @asgothian
                                Okay, hatte ich jetzt auch nicht erkannt.

                                1 Reply Last reply Reply Quote 0
                                • Asgothian
                                  Asgothian Developer @Homoran last edited by

                                  @homoran sagte in Zigbee Aktor nicht alle Kanäle steuerbar:

                                  nur als Anregung:
                                  kann man da ein anderes Icon nehmen?
                                  Auf den Kacheln bedeutet das reconfigure.
                                  Ich hätte hier erwartet: reconfigure all

                                  Ich bin für vorschläge offen. Beliebiges Material icon würde gehen. 🙂 (Icons)

                                  Homoran 1 Reply Last reply Reply Quote 1
                                  • Homoran
                                    Homoran Global Moderator Administrators @Asgothian last edited by

                                    @asgothian Danke!
                                    auf die Schnelle hab ich jetzt nichts wirklich passendes und erkennbares gefunden

                                    Screenshot_20250203-094357_Firefox.jpg

                                    Asgothian 1 Reply Last reply Reply Quote 0
                                    • Asgothian
                                      Asgothian Developer @Homoran last edited by Asgothian

                                      @homoran Es scheint ich hab gepatzt beim bereitstellen des Links. Ich hab nur zugriff auf die Icons hier:

                                      https://materializecss.com/icons.html

                                      Da gibt es die Cleaning-services nicht 😕

                                      A.
                                      Nachtrag: was hältst du von dem hier :
                                      Screenshot 2025-02-03 at 11.27.15.png

                                      Im Adapter Kontext: Screenshot 2025-02-03 at 11.30.23.png

                                      Homoran 1 Reply Last reply Reply Quote 0
                                      • Homoran
                                        Homoran Global Moderator Administrators @Asgothian last edited by

                                        @asgothian sagte in Zigbee Aktor nicht alle Kanäle steuerbar:

                                        ich hab gepatzt beim bereitstellen des Links.

                                        shit happens!

                                        da finde ich auf Anhieb auch nix.
                                        Sweep macht der
                                        Screenshot_20250203-112824_Firefox.jpg

                                        😂

                                        EDIT:
                                        Dein edit gefällt mir.
                                        Das Icon muss passen, nicht dessen Bezeichnung!

                                        Asgothian 1 Reply Last reply Reply Quote 1
                                        • Asgothian
                                          Asgothian Developer @Homoran last edited by

                                          @homoran Ok.. kommt geändert in die 1.10.15 und 2.0 🙂

                                          A.

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

                                          Support us

                                          ioBroker
                                          Community Adapters
                                          Donate

                                          422
                                          Online

                                          31.9k
                                          Users

                                          80.2k
                                          Topics

                                          1.3m
                                          Posts

                                          3
                                          25
                                          1090
                                          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