Skip to content
  • Home
  • Aktuell
  • Tags
  • 0 Ungelesen 0
  • Kategorien
  • Unreplied
  • Beliebt
  • 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

  • Standard: (Kein Skin)
  • Kein Skin
Einklappen
ioBroker Logo

Community Forum

donate donate
  1. ioBroker Community Home
  2. Deutsch
  3. Entwicklung
  4. [gelöst] Keine Instanz nach Adapterinstallation

NEWS

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

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

  • Weihnachtsangebot 2025! 🎄
    BluefoxB
    Bluefox
    25
    1
    2.4k

[gelöst] Keine Instanz nach Adapterinstallation

Geplant Angeheftet Gesperrt Verschoben Entwicklung
7 Beiträge 3 Kommentatoren 560 Aufrufe 2 Watching
  • Älteste zuerst
  • Neuste zuerst
  • Meiste Stimmen
Antworten
  • In einem neuen Thema antworten
Anmelden zum Antworten
Dieses Thema wurde gelöscht. Nur Nutzer mit entsprechenden Rechten können es sehen.
  • P Offline
    P Offline
    peter_n
    schrieb am zuletzt editiert von peter_n
    #1

    Habe meinen Adapter apsystems-ecu (Eigenentwicklung) modifiziert.
    Testinstallation auf meinem Testsystem x86/W10 waren erfolgreich.

    Bei der Testinstallation auf meinem Produktivsystem wird keine Instanz angelegt. Auch fehlt der Konfigurationsdialog.

    Testablauf/Umgebung Produktivsystem:

    • Mein Produktivsystem
    cat /etc/os-release
    NAME="Linux Mint"
    VERSION="19.3 (Tricia)"
    ID=linuxmint
    ID_LIKE=ubuntu
    PRETTY_NAME="Linux Mint 19.3"
    VERSION_ID="19.3"
    HOME_URL="https://www.linuxmint.com/"
    SUPPORT_URL="https://forums.linuxmint.com/"
    BUG_REPORT_URL="http://linuxmint-troubleshooting-guide.readthedocs.io/en/latest/"
    PRIVACY_POLICY_URL="https://www.linuxmint.com/"
    VERSION_CODENAME=tricia
    UBUNTU_CODENAME=bionic
    ...
    Intel(R) Core(TM) i3-5005U CPU @ 2.00GHz
    8GB RAM
    
    • iobroker version
    $ iobroker version
    3.3.22
    
    • Updates wurden durchgeführt
    $ iobroker update -i
    Used repository: stable
    hash unchanged, use cached sources
    update done
    Adapter    "admin"         : 5.2.3    , installed 5.2.3
    Adapter    "alexa2"        : 3.11.2   , installed 3.11.2
    Adapter    "backitup"      : 2.2.3    , installed 2.2.3
    Adapter    "daswetter"     : 3.0.9    , installed 3.0.9
    Adapter    "devices"       : 1.0.9    , installed 1.0.9
    Adapter    "discovery"     : 2.7.3    , installed 2.7.3
    Adapter    "echarts"       : 1.0.3    , installed 1.0.3
    Adapter    "frontier_silicon": 0.0.10  , installed 0.0.10
    Adapter    "history"       : 1.9.14   , installed 1.9.14
    Adapter    "homekit-controller": 0.3.3   , installed 0.3.3
    Adapter    "hue"           : 3.5.31   , installed 3.5.31
    Adapter    "ical"          : 1.11.4   , installed 1.11.4
    Adapter    "icons-addictive-flavour-png": 0.1.0   , installed 0.1.0
    Adapter    "icons-fatcow-hosting": 0.1.0   , installed 0.1.0
    Adapter    "icons-icons8"  : 0.0.1    , installed 0.0.1
    Adapter    "icons-material-png": 0.1.0   , installed 0.1.0
    Adapter    "icons-material-svg": 0.1.0   , installed 0.1.0
    Adapter    "icons-mfd-png" : 1.0.2    , installed 1.0.2
    Adapter    "icons-mfd-svg" : 1.0.2    , installed 1.0.2
    Adapter    "icons-open-icon-library-png": 0.1.2   , installed 0.1.3
    Adapter    "icons-ultimate-png": 1.0.1   , installed 1.0.1
    Adapter    "influxdb"      : 1.9.5    , installed 1.9.5
    Adapter    "info"          : 1.9.8    , installed 1.9.8
    Adapter    "javascript"    : 5.2.13   , installed 5.2.13
    Controller "js-controller" : 3.3.22   , installed 3.3.22
    Adapter    "lovelace"      : 2.0.6    , installed 2.1.4
    Adapter    "maxcube"       : 1.0.4    , installed 1.0.4
    Adapter    "mqtt"          : 2.4.0    , installed 2.4.0
    Adapter    "nina"          : 0.0.25   , installed 0.0.25
    Adapter    "node-red"      : 2.4.1    , installed 2.4.1
    Adapter    "octoprint"     : 2.1.0    , installed 2.1.0
    Adapter    "ping"          : 1.5.0    , installed 1.5.0
    Adapter    "simple-api"    : 2.6.1    , installed 2.6.1
    Adapter    "socketio"      : 3.1.5    , installed 3.1.5
    Adapter    "sonoff"        : 2.4.5    , installed 2.4.5
    Adapter    "systeminfo"    : 0.3.1    , installed 0.3.1
    Adapter    "tankerkoenig"  : 2.1.1    , installed 2.1.1
    Adapter    "telegram"      : 1.10.0   , installed 1.10.0
    Adapter    "tr-064"        : 4.2.14   , installed 4.2.14
    Adapter    "trashschedule" : 1.4.1    , installed 1.4.1
    Adapter    "vis"           : 1.4.5    , installed 1.4.5
    Adapter    "vis-bars"      : 0.1.4    , installed 0.1.4
    Adapter    "vis-canvas-gauges": 0.1.5   , installed 0.1.5
    Adapter    "vis-colorpicker": 1.2.0   , installed 1.2.0
    Adapter    "vis-fancyswitch": 1.1.0   , installed 1.1.0
    Adapter    "vis-history"   : 1.0.0    , installed 1.0.0
    Adapter    "vis-hqwidgets" : 1.1.7    , installed 1.1.7
    Adapter    "vis-jqui-mfd"  : 1.0.12   , installed 1.0.12
    Adapter    "vis-justgage"  : 1.0.2    , installed 1.0.2
    Adapter    "vis-keyboard"  : 0.0.2    , installed 0.0.2
    Adapter    "vis-lcars"     : 1.0.4    , installed 1.0.4
    Adapter    "vis-metro"     : 1.1.2    , installed 1.1.2
    Adapter    "vis-plumb"     : 1.0.2    , installed 1.0.2
    Adapter    "vis-rgraph"    : 0.0.2    , installed 0.0.2
    Adapter    "vis-weather"   : 2.5.5    , installed 2.5.5
    Adapter    "web"           : 3.4.16   , installed 3.4.16
    Adapter    "windows-control": 0.1.5   , installed 0.1.5
    Adapter    "zigbee"        : 1.6.6    , installed 1.6.6
    
    • Deinstallation der aktuellen Instanz unauffällig
    • Neuinstallation des Adapters über iobroker/Adapter ist scheinbar OK
    $ iobroker url https://github.com/npeter/ioBroker.apsystems-ecu --host BIGPETSH --debug
    install npeter/ioBroker.apsystems-ecu#b6a124f42df262ca04ef11130ec32e47e057cadf
    NPM version: 6.14.16
    npm install npeter/ioBroker.apsystems-ecu#b6a124f42df262ca04ef11130ec32e47e057cadf --prefix "/opt/iobroker" (System call)
    npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@~2.3.2 (node_modules/chokidar/node_modules/fsevents):npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@2.3.2: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})
    npm WARN optional SKIPPING OPTIONAL DEPENDENCY: osx-temperature-sensor@^1.0.7 (node_modules/iobroker.info/node_modules/osx-temperature-sensor):
    npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for osx-temperature-sensor@1.0.7: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})
    npm WARN enoent ENOENT: no such file or directory, open '/opt/iobroker/node_modules/chalk/package.json'
    npm WARN enoent ENOENT: no such file or directory, open '/opt/iobroker/node_modules/virtual-device-sdk/package.json'
    + iobroker.apsystems-ecu@0.2.1added 6 packages from 26 contributors in 14.829s
    88 packages are looking for funding run `npm fund` for details
    upload [4] apsystems-ecu.admin /opt/iobroker/node_modules/iobroker.apsystems-ecu/admin/words.js words.js application/javascript
    upload [3] apsystems-ecu.admin /opt/iobroker/node_modules/iobroker.apsystems-ecu/admin/style.css style.css text/css
    upload [2] apsystems-ecu.admin /opt/iobroker/node_modules/iobroker.apsystems-ecu/admin/index_m.html index_m.html text/html
    upload [1] apsystems-ecu.admin /opt/iobroker/node_modules/iobroker.apsystems-ecu/admin/apsystems-ecu.png apsystems-ecu.png image/png
    upload [0] apsystems-ecu.admin /opt/iobroker/node_modules/iobroker.apsystems-ecu/admin/admin.d.ts admin.d.ts video/mp2t
    Process exited with code 0
    
    • iobroker list adapters ist scheinbar OK
    $ iobroker list adapters
    system.adapter.admin                   : admin          - v5.2.3
    system.adapter.alexa2                  : alexa2         - v3.11.2
    system.adapter.apsystems-ecu           : apsystems-ecu  - v0.2.1
    ...
    
    • Instanz fehlt scheinbar
    (base) bigpet@BIGPETSH:/opt/iobroker$ iobroker list instances
    + system.adapter.admin.0                  : admin                 : BIGPETSH                                 -  enabled, port: 8181, bind: 0.0.0.0, run as: admin
    + system.adapter.alexa2.0                 : alexa2                : BIGPETSH                                 -  enabled
    + system.adapter.backitup.0               : backitup              : BIGPETSH                                 -  enabled- Die Instanz fehlt scheinbar:
    
    • Es wurde der Adaper-Creator verwendet
    /*
     * Created with @iobroker/create-adapter v1.26.3
     */
    
    // The adapter-core module gives you access to the core ioBroker functions
    // you need to create an adapter
    const utils = require('@iobroker/adapter-core');
    
    const myEcu = require('./lib/ecu');
    // Load your modules here, e.g.:
    // const fs = require("fs");
    
    class ApsystemsEcu extends utils.Adapter {
    
        /**
         * @param {Partial<utils.AdapterOptions>} [options={}]
         */
        constructor(options) {
            super({
                ...options,
                name: 'apsystems-ecu',
            });
    
            this.ecu = new myEcu.Ecu(this);
    
            this.on('ready', this.onReady.bind(this));
            this.on('stateChange', this.onStateChange.bind(this));
            // this.on('objectChange', this.onObjectChange.bind(this));
            // this.on('message', this.onMessage.bind(this));
            this.on('unload', this.onUnload.bind(this));
        }
    
        /**
         * Is called when databases are connected and adapter received configuration.
         */
        async onReady() {
            // Reset the connection indicator during startup
            this.setState('info.connection', false, true);
            this.ecu.init();                           
        }
    
        /**
         * Is called when adapter shuts down - callback has to be called under any circumstances!
         * @param {() => void} callback
         */
        onUnload(callback) {
            try {
                this.ecu.unload();    
                callback();
            } catch (e) {
                callback();
            }
        }
    
        // If you need to react to object changes, uncomment the following block and the corresponding line in the constructor.
        // You also need to subscribe to the objects with `this.subscribeObjects`, similar to `this.subscribeStates`.
        // /**
        //  * Is called if a subscribed object changes
        //  * @param {string} id
        //  * @param {ioBroker.Object | null | undefined} obj
        //  */
        // onObjectChange(id, obj) {
        //     if (obj) {
        //         // The object was changed
        //         this.log.info(`object ${id} changed: ${JSON.stringify(obj)}`);
        //     } else {
        //         // The object was deleted
        //         this.log.info(`object ${id} deleted`);
        //     }
        // }
    
        /**
         * Is called if a subscribed state changes
         * @param {string} id
         * @param {ioBroker.State | null | undefined} state
         */
        onStateChange(id, state) {
            if (state) {
                // The state was changed
                this.ecu.onStateChange(id, state);
                    
                this.log.info(`state ${id} changed: ${state.val} (ack = ${state.ack})`);
            } else {
                // The state was deleted
                this.log.info(`state ${id} deleted`);
            }
        }
    
        // If you need to accept messages in your adapter, uncomment the following block and the corresponding line in the constructor.
        // /**
        //  * Some message was sent to this instance over message box. Used by email, pushover, text2speech, ...
        //  * Using this method requires "common.message" property to be set to true in io-package.json
        //  * @param {ioBroker.Message} obj
        //  */
        // onMessage(obj) {
        //     if (typeof obj === 'object' && obj.message) {
        //         if (obj.command === 'send') {
        //             // e.g. send email or pushover or whatever
        //             this.log.info('send command');
    
        //             // Send response in callback if required
        //             if (obj.callback) this.sendTo(obj.from, obj.command, 'Message received', obj.callback);
        //         }
        //     }
        // }
    
    }
    
    // @ts-ignore parent is a valid property on module
    if (module.parent) {
        // Export the constructor in compact mode
        /**
         * @param {Partial<utils.AdapterOptions>} [options={}]
         */
        module.exports = (options) => new ApsystemsEcu(options);
    } else {
        // otherwise start the instance directly
        new ApsystemsEcu();
    }
    

    Wäre schön, wenn jemand einen Tip für mich hätte! Fehlen noch Informationen?
    Danke und Grüße

    Thomas BraunT HomoranH 2 Antworten Letzte Antwort
    0
    • P peter_n

      Habe meinen Adapter apsystems-ecu (Eigenentwicklung) modifiziert.
      Testinstallation auf meinem Testsystem x86/W10 waren erfolgreich.

      Bei der Testinstallation auf meinem Produktivsystem wird keine Instanz angelegt. Auch fehlt der Konfigurationsdialog.

      Testablauf/Umgebung Produktivsystem:

      • Mein Produktivsystem
      cat /etc/os-release
      NAME="Linux Mint"
      VERSION="19.3 (Tricia)"
      ID=linuxmint
      ID_LIKE=ubuntu
      PRETTY_NAME="Linux Mint 19.3"
      VERSION_ID="19.3"
      HOME_URL="https://www.linuxmint.com/"
      SUPPORT_URL="https://forums.linuxmint.com/"
      BUG_REPORT_URL="http://linuxmint-troubleshooting-guide.readthedocs.io/en/latest/"
      PRIVACY_POLICY_URL="https://www.linuxmint.com/"
      VERSION_CODENAME=tricia
      UBUNTU_CODENAME=bionic
      ...
      Intel(R) Core(TM) i3-5005U CPU @ 2.00GHz
      8GB RAM
      
      • iobroker version
      $ iobroker version
      3.3.22
      
      • Updates wurden durchgeführt
      $ iobroker update -i
      Used repository: stable
      hash unchanged, use cached sources
      update done
      Adapter    "admin"         : 5.2.3    , installed 5.2.3
      Adapter    "alexa2"        : 3.11.2   , installed 3.11.2
      Adapter    "backitup"      : 2.2.3    , installed 2.2.3
      Adapter    "daswetter"     : 3.0.9    , installed 3.0.9
      Adapter    "devices"       : 1.0.9    , installed 1.0.9
      Adapter    "discovery"     : 2.7.3    , installed 2.7.3
      Adapter    "echarts"       : 1.0.3    , installed 1.0.3
      Adapter    "frontier_silicon": 0.0.10  , installed 0.0.10
      Adapter    "history"       : 1.9.14   , installed 1.9.14
      Adapter    "homekit-controller": 0.3.3   , installed 0.3.3
      Adapter    "hue"           : 3.5.31   , installed 3.5.31
      Adapter    "ical"          : 1.11.4   , installed 1.11.4
      Adapter    "icons-addictive-flavour-png": 0.1.0   , installed 0.1.0
      Adapter    "icons-fatcow-hosting": 0.1.0   , installed 0.1.0
      Adapter    "icons-icons8"  : 0.0.1    , installed 0.0.1
      Adapter    "icons-material-png": 0.1.0   , installed 0.1.0
      Adapter    "icons-material-svg": 0.1.0   , installed 0.1.0
      Adapter    "icons-mfd-png" : 1.0.2    , installed 1.0.2
      Adapter    "icons-mfd-svg" : 1.0.2    , installed 1.0.2
      Adapter    "icons-open-icon-library-png": 0.1.2   , installed 0.1.3
      Adapter    "icons-ultimate-png": 1.0.1   , installed 1.0.1
      Adapter    "influxdb"      : 1.9.5    , installed 1.9.5
      Adapter    "info"          : 1.9.8    , installed 1.9.8
      Adapter    "javascript"    : 5.2.13   , installed 5.2.13
      Controller "js-controller" : 3.3.22   , installed 3.3.22
      Adapter    "lovelace"      : 2.0.6    , installed 2.1.4
      Adapter    "maxcube"       : 1.0.4    , installed 1.0.4
      Adapter    "mqtt"          : 2.4.0    , installed 2.4.0
      Adapter    "nina"          : 0.0.25   , installed 0.0.25
      Adapter    "node-red"      : 2.4.1    , installed 2.4.1
      Adapter    "octoprint"     : 2.1.0    , installed 2.1.0
      Adapter    "ping"          : 1.5.0    , installed 1.5.0
      Adapter    "simple-api"    : 2.6.1    , installed 2.6.1
      Adapter    "socketio"      : 3.1.5    , installed 3.1.5
      Adapter    "sonoff"        : 2.4.5    , installed 2.4.5
      Adapter    "systeminfo"    : 0.3.1    , installed 0.3.1
      Adapter    "tankerkoenig"  : 2.1.1    , installed 2.1.1
      Adapter    "telegram"      : 1.10.0   , installed 1.10.0
      Adapter    "tr-064"        : 4.2.14   , installed 4.2.14
      Adapter    "trashschedule" : 1.4.1    , installed 1.4.1
      Adapter    "vis"           : 1.4.5    , installed 1.4.5
      Adapter    "vis-bars"      : 0.1.4    , installed 0.1.4
      Adapter    "vis-canvas-gauges": 0.1.5   , installed 0.1.5
      Adapter    "vis-colorpicker": 1.2.0   , installed 1.2.0
      Adapter    "vis-fancyswitch": 1.1.0   , installed 1.1.0
      Adapter    "vis-history"   : 1.0.0    , installed 1.0.0
      Adapter    "vis-hqwidgets" : 1.1.7    , installed 1.1.7
      Adapter    "vis-jqui-mfd"  : 1.0.12   , installed 1.0.12
      Adapter    "vis-justgage"  : 1.0.2    , installed 1.0.2
      Adapter    "vis-keyboard"  : 0.0.2    , installed 0.0.2
      Adapter    "vis-lcars"     : 1.0.4    , installed 1.0.4
      Adapter    "vis-metro"     : 1.1.2    , installed 1.1.2
      Adapter    "vis-plumb"     : 1.0.2    , installed 1.0.2
      Adapter    "vis-rgraph"    : 0.0.2    , installed 0.0.2
      Adapter    "vis-weather"   : 2.5.5    , installed 2.5.5
      Adapter    "web"           : 3.4.16   , installed 3.4.16
      Adapter    "windows-control": 0.1.5   , installed 0.1.5
      Adapter    "zigbee"        : 1.6.6    , installed 1.6.6
      
      • Deinstallation der aktuellen Instanz unauffällig
      • Neuinstallation des Adapters über iobroker/Adapter ist scheinbar OK
      $ iobroker url https://github.com/npeter/ioBroker.apsystems-ecu --host BIGPETSH --debug
      install npeter/ioBroker.apsystems-ecu#b6a124f42df262ca04ef11130ec32e47e057cadf
      NPM version: 6.14.16
      npm install npeter/ioBroker.apsystems-ecu#b6a124f42df262ca04ef11130ec32e47e057cadf --prefix "/opt/iobroker" (System call)
      npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@~2.3.2 (node_modules/chokidar/node_modules/fsevents):npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@2.3.2: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})
      npm WARN optional SKIPPING OPTIONAL DEPENDENCY: osx-temperature-sensor@^1.0.7 (node_modules/iobroker.info/node_modules/osx-temperature-sensor):
      npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for osx-temperature-sensor@1.0.7: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})
      npm WARN enoent ENOENT: no such file or directory, open '/opt/iobroker/node_modules/chalk/package.json'
      npm WARN enoent ENOENT: no such file or directory, open '/opt/iobroker/node_modules/virtual-device-sdk/package.json'
      + iobroker.apsystems-ecu@0.2.1added 6 packages from 26 contributors in 14.829s
      88 packages are looking for funding run `npm fund` for details
      upload [4] apsystems-ecu.admin /opt/iobroker/node_modules/iobroker.apsystems-ecu/admin/words.js words.js application/javascript
      upload [3] apsystems-ecu.admin /opt/iobroker/node_modules/iobroker.apsystems-ecu/admin/style.css style.css text/css
      upload [2] apsystems-ecu.admin /opt/iobroker/node_modules/iobroker.apsystems-ecu/admin/index_m.html index_m.html text/html
      upload [1] apsystems-ecu.admin /opt/iobroker/node_modules/iobroker.apsystems-ecu/admin/apsystems-ecu.png apsystems-ecu.png image/png
      upload [0] apsystems-ecu.admin /opt/iobroker/node_modules/iobroker.apsystems-ecu/admin/admin.d.ts admin.d.ts video/mp2t
      Process exited with code 0
      
      • iobroker list adapters ist scheinbar OK
      $ iobroker list adapters
      system.adapter.admin                   : admin          - v5.2.3
      system.adapter.alexa2                  : alexa2         - v3.11.2
      system.adapter.apsystems-ecu           : apsystems-ecu  - v0.2.1
      ...
      
      • Instanz fehlt scheinbar
      (base) bigpet@BIGPETSH:/opt/iobroker$ iobroker list instances
      + system.adapter.admin.0                  : admin                 : BIGPETSH                                 -  enabled, port: 8181, bind: 0.0.0.0, run as: admin
      + system.adapter.alexa2.0                 : alexa2                : BIGPETSH                                 -  enabled
      + system.adapter.backitup.0               : backitup              : BIGPETSH                                 -  enabled- Die Instanz fehlt scheinbar:
      
      • Es wurde der Adaper-Creator verwendet
      /*
       * Created with @iobroker/create-adapter v1.26.3
       */
      
      // The adapter-core module gives you access to the core ioBroker functions
      // you need to create an adapter
      const utils = require('@iobroker/adapter-core');
      
      const myEcu = require('./lib/ecu');
      // Load your modules here, e.g.:
      // const fs = require("fs");
      
      class ApsystemsEcu extends utils.Adapter {
      
          /**
           * @param {Partial<utils.AdapterOptions>} [options={}]
           */
          constructor(options) {
              super({
                  ...options,
                  name: 'apsystems-ecu',
              });
      
              this.ecu = new myEcu.Ecu(this);
      
              this.on('ready', this.onReady.bind(this));
              this.on('stateChange', this.onStateChange.bind(this));
              // this.on('objectChange', this.onObjectChange.bind(this));
              // this.on('message', this.onMessage.bind(this));
              this.on('unload', this.onUnload.bind(this));
          }
      
          /**
           * Is called when databases are connected and adapter received configuration.
           */
          async onReady() {
              // Reset the connection indicator during startup
              this.setState('info.connection', false, true);
              this.ecu.init();                           
          }
      
          /**
           * Is called when adapter shuts down - callback has to be called under any circumstances!
           * @param {() => void} callback
           */
          onUnload(callback) {
              try {
                  this.ecu.unload();    
                  callback();
              } catch (e) {
                  callback();
              }
          }
      
          // If you need to react to object changes, uncomment the following block and the corresponding line in the constructor.
          // You also need to subscribe to the objects with `this.subscribeObjects`, similar to `this.subscribeStates`.
          // /**
          //  * Is called if a subscribed object changes
          //  * @param {string} id
          //  * @param {ioBroker.Object | null | undefined} obj
          //  */
          // onObjectChange(id, obj) {
          //     if (obj) {
          //         // The object was changed
          //         this.log.info(`object ${id} changed: ${JSON.stringify(obj)}`);
          //     } else {
          //         // The object was deleted
          //         this.log.info(`object ${id} deleted`);
          //     }
          // }
      
          /**
           * Is called if a subscribed state changes
           * @param {string} id
           * @param {ioBroker.State | null | undefined} state
           */
          onStateChange(id, state) {
              if (state) {
                  // The state was changed
                  this.ecu.onStateChange(id, state);
                      
                  this.log.info(`state ${id} changed: ${state.val} (ack = ${state.ack})`);
              } else {
                  // The state was deleted
                  this.log.info(`state ${id} deleted`);
              }
          }
      
          // If you need to accept messages in your adapter, uncomment the following block and the corresponding line in the constructor.
          // /**
          //  * Some message was sent to this instance over message box. Used by email, pushover, text2speech, ...
          //  * Using this method requires "common.message" property to be set to true in io-package.json
          //  * @param {ioBroker.Message} obj
          //  */
          // onMessage(obj) {
          //     if (typeof obj === 'object' && obj.message) {
          //         if (obj.command === 'send') {
          //             // e.g. send email or pushover or whatever
          //             this.log.info('send command');
      
          //             // Send response in callback if required
          //             if (obj.callback) this.sendTo(obj.from, obj.command, 'Message received', obj.callback);
          //         }
          //     }
          // }
      
      }
      
      // @ts-ignore parent is a valid property on module
      if (module.parent) {
          // Export the constructor in compact mode
          /**
           * @param {Partial<utils.AdapterOptions>} [options={}]
           */
          module.exports = (options) => new ApsystemsEcu(options);
      } else {
          // otherwise start the instance directly
          new ApsystemsEcu();
      }
      

      Wäre schön, wenn jemand einen Tip für mich hätte! Fehlen noch Informationen?
      Danke und Grüße

      Thomas BraunT Online
      Thomas BraunT Online
      Thomas Braun
      Most Active
      schrieb am zuletzt editiert von
      #2

      @peter_n
      Manuelle Installation außerhalb der Repositories bedarf einer manuellen Instanz.

      Linux-Werkzeugkasten:
      https://forum.iobroker.net/topic/42952/der-kleine-iobroker-linux-werkzeugkasten
      NodeJS Fixer Skript:
      https://forum.iobroker.net/topic/68035/iob-node-fix-skript
      iob_diag: curl -sLf -o diag.sh https://iobroker.net/diag.sh && bash diag.sh

      1 Antwort Letzte Antwort
      0
      • P peter_n

        Habe meinen Adapter apsystems-ecu (Eigenentwicklung) modifiziert.
        Testinstallation auf meinem Testsystem x86/W10 waren erfolgreich.

        Bei der Testinstallation auf meinem Produktivsystem wird keine Instanz angelegt. Auch fehlt der Konfigurationsdialog.

        Testablauf/Umgebung Produktivsystem:

        • Mein Produktivsystem
        cat /etc/os-release
        NAME="Linux Mint"
        VERSION="19.3 (Tricia)"
        ID=linuxmint
        ID_LIKE=ubuntu
        PRETTY_NAME="Linux Mint 19.3"
        VERSION_ID="19.3"
        HOME_URL="https://www.linuxmint.com/"
        SUPPORT_URL="https://forums.linuxmint.com/"
        BUG_REPORT_URL="http://linuxmint-troubleshooting-guide.readthedocs.io/en/latest/"
        PRIVACY_POLICY_URL="https://www.linuxmint.com/"
        VERSION_CODENAME=tricia
        UBUNTU_CODENAME=bionic
        ...
        Intel(R) Core(TM) i3-5005U CPU @ 2.00GHz
        8GB RAM
        
        • iobroker version
        $ iobroker version
        3.3.22
        
        • Updates wurden durchgeführt
        $ iobroker update -i
        Used repository: stable
        hash unchanged, use cached sources
        update done
        Adapter    "admin"         : 5.2.3    , installed 5.2.3
        Adapter    "alexa2"        : 3.11.2   , installed 3.11.2
        Adapter    "backitup"      : 2.2.3    , installed 2.2.3
        Adapter    "daswetter"     : 3.0.9    , installed 3.0.9
        Adapter    "devices"       : 1.0.9    , installed 1.0.9
        Adapter    "discovery"     : 2.7.3    , installed 2.7.3
        Adapter    "echarts"       : 1.0.3    , installed 1.0.3
        Adapter    "frontier_silicon": 0.0.10  , installed 0.0.10
        Adapter    "history"       : 1.9.14   , installed 1.9.14
        Adapter    "homekit-controller": 0.3.3   , installed 0.3.3
        Adapter    "hue"           : 3.5.31   , installed 3.5.31
        Adapter    "ical"          : 1.11.4   , installed 1.11.4
        Adapter    "icons-addictive-flavour-png": 0.1.0   , installed 0.1.0
        Adapter    "icons-fatcow-hosting": 0.1.0   , installed 0.1.0
        Adapter    "icons-icons8"  : 0.0.1    , installed 0.0.1
        Adapter    "icons-material-png": 0.1.0   , installed 0.1.0
        Adapter    "icons-material-svg": 0.1.0   , installed 0.1.0
        Adapter    "icons-mfd-png" : 1.0.2    , installed 1.0.2
        Adapter    "icons-mfd-svg" : 1.0.2    , installed 1.0.2
        Adapter    "icons-open-icon-library-png": 0.1.2   , installed 0.1.3
        Adapter    "icons-ultimate-png": 1.0.1   , installed 1.0.1
        Adapter    "influxdb"      : 1.9.5    , installed 1.9.5
        Adapter    "info"          : 1.9.8    , installed 1.9.8
        Adapter    "javascript"    : 5.2.13   , installed 5.2.13
        Controller "js-controller" : 3.3.22   , installed 3.3.22
        Adapter    "lovelace"      : 2.0.6    , installed 2.1.4
        Adapter    "maxcube"       : 1.0.4    , installed 1.0.4
        Adapter    "mqtt"          : 2.4.0    , installed 2.4.0
        Adapter    "nina"          : 0.0.25   , installed 0.0.25
        Adapter    "node-red"      : 2.4.1    , installed 2.4.1
        Adapter    "octoprint"     : 2.1.0    , installed 2.1.0
        Adapter    "ping"          : 1.5.0    , installed 1.5.0
        Adapter    "simple-api"    : 2.6.1    , installed 2.6.1
        Adapter    "socketio"      : 3.1.5    , installed 3.1.5
        Adapter    "sonoff"        : 2.4.5    , installed 2.4.5
        Adapter    "systeminfo"    : 0.3.1    , installed 0.3.1
        Adapter    "tankerkoenig"  : 2.1.1    , installed 2.1.1
        Adapter    "telegram"      : 1.10.0   , installed 1.10.0
        Adapter    "tr-064"        : 4.2.14   , installed 4.2.14
        Adapter    "trashschedule" : 1.4.1    , installed 1.4.1
        Adapter    "vis"           : 1.4.5    , installed 1.4.5
        Adapter    "vis-bars"      : 0.1.4    , installed 0.1.4
        Adapter    "vis-canvas-gauges": 0.1.5   , installed 0.1.5
        Adapter    "vis-colorpicker": 1.2.0   , installed 1.2.0
        Adapter    "vis-fancyswitch": 1.1.0   , installed 1.1.0
        Adapter    "vis-history"   : 1.0.0    , installed 1.0.0
        Adapter    "vis-hqwidgets" : 1.1.7    , installed 1.1.7
        Adapter    "vis-jqui-mfd"  : 1.0.12   , installed 1.0.12
        Adapter    "vis-justgage"  : 1.0.2    , installed 1.0.2
        Adapter    "vis-keyboard"  : 0.0.2    , installed 0.0.2
        Adapter    "vis-lcars"     : 1.0.4    , installed 1.0.4
        Adapter    "vis-metro"     : 1.1.2    , installed 1.1.2
        Adapter    "vis-plumb"     : 1.0.2    , installed 1.0.2
        Adapter    "vis-rgraph"    : 0.0.2    , installed 0.0.2
        Adapter    "vis-weather"   : 2.5.5    , installed 2.5.5
        Adapter    "web"           : 3.4.16   , installed 3.4.16
        Adapter    "windows-control": 0.1.5   , installed 0.1.5
        Adapter    "zigbee"        : 1.6.6    , installed 1.6.6
        
        • Deinstallation der aktuellen Instanz unauffällig
        • Neuinstallation des Adapters über iobroker/Adapter ist scheinbar OK
        $ iobroker url https://github.com/npeter/ioBroker.apsystems-ecu --host BIGPETSH --debug
        install npeter/ioBroker.apsystems-ecu#b6a124f42df262ca04ef11130ec32e47e057cadf
        NPM version: 6.14.16
        npm install npeter/ioBroker.apsystems-ecu#b6a124f42df262ca04ef11130ec32e47e057cadf --prefix "/opt/iobroker" (System call)
        npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@~2.3.2 (node_modules/chokidar/node_modules/fsevents):npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@2.3.2: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})
        npm WARN optional SKIPPING OPTIONAL DEPENDENCY: osx-temperature-sensor@^1.0.7 (node_modules/iobroker.info/node_modules/osx-temperature-sensor):
        npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for osx-temperature-sensor@1.0.7: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})
        npm WARN enoent ENOENT: no such file or directory, open '/opt/iobroker/node_modules/chalk/package.json'
        npm WARN enoent ENOENT: no such file or directory, open '/opt/iobroker/node_modules/virtual-device-sdk/package.json'
        + iobroker.apsystems-ecu@0.2.1added 6 packages from 26 contributors in 14.829s
        88 packages are looking for funding run `npm fund` for details
        upload [4] apsystems-ecu.admin /opt/iobroker/node_modules/iobroker.apsystems-ecu/admin/words.js words.js application/javascript
        upload [3] apsystems-ecu.admin /opt/iobroker/node_modules/iobroker.apsystems-ecu/admin/style.css style.css text/css
        upload [2] apsystems-ecu.admin /opt/iobroker/node_modules/iobroker.apsystems-ecu/admin/index_m.html index_m.html text/html
        upload [1] apsystems-ecu.admin /opt/iobroker/node_modules/iobroker.apsystems-ecu/admin/apsystems-ecu.png apsystems-ecu.png image/png
        upload [0] apsystems-ecu.admin /opt/iobroker/node_modules/iobroker.apsystems-ecu/admin/admin.d.ts admin.d.ts video/mp2t
        Process exited with code 0
        
        • iobroker list adapters ist scheinbar OK
        $ iobroker list adapters
        system.adapter.admin                   : admin          - v5.2.3
        system.adapter.alexa2                  : alexa2         - v3.11.2
        system.adapter.apsystems-ecu           : apsystems-ecu  - v0.2.1
        ...
        
        • Instanz fehlt scheinbar
        (base) bigpet@BIGPETSH:/opt/iobroker$ iobroker list instances
        + system.adapter.admin.0                  : admin                 : BIGPETSH                                 -  enabled, port: 8181, bind: 0.0.0.0, run as: admin
        + system.adapter.alexa2.0                 : alexa2                : BIGPETSH                                 -  enabled
        + system.adapter.backitup.0               : backitup              : BIGPETSH                                 -  enabled- Die Instanz fehlt scheinbar:
        
        • Es wurde der Adaper-Creator verwendet
        /*
         * Created with @iobroker/create-adapter v1.26.3
         */
        
        // The adapter-core module gives you access to the core ioBroker functions
        // you need to create an adapter
        const utils = require('@iobroker/adapter-core');
        
        const myEcu = require('./lib/ecu');
        // Load your modules here, e.g.:
        // const fs = require("fs");
        
        class ApsystemsEcu extends utils.Adapter {
        
            /**
             * @param {Partial<utils.AdapterOptions>} [options={}]
             */
            constructor(options) {
                super({
                    ...options,
                    name: 'apsystems-ecu',
                });
        
                this.ecu = new myEcu.Ecu(this);
        
                this.on('ready', this.onReady.bind(this));
                this.on('stateChange', this.onStateChange.bind(this));
                // this.on('objectChange', this.onObjectChange.bind(this));
                // this.on('message', this.onMessage.bind(this));
                this.on('unload', this.onUnload.bind(this));
            }
        
            /**
             * Is called when databases are connected and adapter received configuration.
             */
            async onReady() {
                // Reset the connection indicator during startup
                this.setState('info.connection', false, true);
                this.ecu.init();                           
            }
        
            /**
             * Is called when adapter shuts down - callback has to be called under any circumstances!
             * @param {() => void} callback
             */
            onUnload(callback) {
                try {
                    this.ecu.unload();    
                    callback();
                } catch (e) {
                    callback();
                }
            }
        
            // If you need to react to object changes, uncomment the following block and the corresponding line in the constructor.
            // You also need to subscribe to the objects with `this.subscribeObjects`, similar to `this.subscribeStates`.
            // /**
            //  * Is called if a subscribed object changes
            //  * @param {string} id
            //  * @param {ioBroker.Object | null | undefined} obj
            //  */
            // onObjectChange(id, obj) {
            //     if (obj) {
            //         // The object was changed
            //         this.log.info(`object ${id} changed: ${JSON.stringify(obj)}`);
            //     } else {
            //         // The object was deleted
            //         this.log.info(`object ${id} deleted`);
            //     }
            // }
        
            /**
             * Is called if a subscribed state changes
             * @param {string} id
             * @param {ioBroker.State | null | undefined} state
             */
            onStateChange(id, state) {
                if (state) {
                    // The state was changed
                    this.ecu.onStateChange(id, state);
                        
                    this.log.info(`state ${id} changed: ${state.val} (ack = ${state.ack})`);
                } else {
                    // The state was deleted
                    this.log.info(`state ${id} deleted`);
                }
            }
        
            // If you need to accept messages in your adapter, uncomment the following block and the corresponding line in the constructor.
            // /**
            //  * Some message was sent to this instance over message box. Used by email, pushover, text2speech, ...
            //  * Using this method requires "common.message" property to be set to true in io-package.json
            //  * @param {ioBroker.Message} obj
            //  */
            // onMessage(obj) {
            //     if (typeof obj === 'object' && obj.message) {
            //         if (obj.command === 'send') {
            //             // e.g. send email or pushover or whatever
            //             this.log.info('send command');
        
            //             // Send response in callback if required
            //             if (obj.callback) this.sendTo(obj.from, obj.command, 'Message received', obj.callback);
            //         }
            //     }
            // }
        
        }
        
        // @ts-ignore parent is a valid property on module
        if (module.parent) {
            // Export the constructor in compact mode
            /**
             * @param {Partial<utils.AdapterOptions>} [options={}]
             */
            module.exports = (options) => new ApsystemsEcu(options);
        } else {
            // otherwise start the instance directly
            new ApsystemsEcu();
        }
        

        Wäre schön, wenn jemand einen Tip für mich hätte! Fehlen noch Informationen?
        Danke und Grüße

        HomoranH Nicht stören
        HomoranH Nicht stören
        Homoran
        Global Moderator Administrators
        schrieb am zuletzt editiert von
        #3

        @peter_n sagte in [Frage] Keine Instanz nach Adapterinstallation:

        Bei der Testinstallation auf meinem Produktivsystem wird keine Instanz angelegt. Auch fehlt der Konfigurationsdialog.

        letzteres kommt erst mit der Instanz. Diese erst nach manueller Instanzierung

        kein Support per PN! - Fragen im Forum stellen - es gibt fast nichts, was nicht auch für andere interessant ist.

        Benutzt das Voting rechts unten im Beitrag wenn er euch geholfen hat.

        der Installationsfixer: curl -fsL https://iobroker.net/fix.sh | bash -

        1 Antwort Letzte Antwort
        1
        • P Offline
          P Offline
          peter_n
          schrieb am zuletzt editiert von peter_n
          #4

          @homoran said in [Frage] Keine Instanz nach Adapterinstallation:

          letzteres kommt erst mit der Instanz. Diese erst nach manueller Instanzierung

          @homoran @thomas-braun

          Viele Danke für die Hilfe.
          Hat mit dem manuellen Anlegen der Instanz funktioniert!

          Eine Detailfrage:
          Warum ging das im NOV 2021 scheinbar noch? Auch hat scheinbar ein Testbenutzer die Installation Erstversion ohne manuelle Instantierung erfolgreich geschafft!

          Thomas BraunT 1 Antwort Letzte Antwort
          0
          • P peter_n

            @homoran said in [Frage] Keine Instanz nach Adapterinstallation:

            letzteres kommt erst mit der Instanz. Diese erst nach manueller Instanzierung

            @homoran @thomas-braun

            Viele Danke für die Hilfe.
            Hat mit dem manuellen Anlegen der Instanz funktioniert!

            Eine Detailfrage:
            Warum ging das im NOV 2021 scheinbar noch? Auch hat scheinbar ein Testbenutzer die Installation Erstversion ohne manuelle Instantierung erfolgreich geschafft!

            Thomas BraunT Online
            Thomas BraunT Online
            Thomas Braun
            Most Active
            schrieb am zuletzt editiert von
            #5

            @peter_n sagte in [Frage] Keine Instanz nach Adapterinstallation:

            Warum ging das im NOV 2021 scheinbar noch?

            Das ging noch nie.

            Linux-Werkzeugkasten:
            https://forum.iobroker.net/topic/42952/der-kleine-iobroker-linux-werkzeugkasten
            NodeJS Fixer Skript:
            https://forum.iobroker.net/topic/68035/iob-node-fix-skript
            iob_diag: curl -sLf -o diag.sh https://iobroker.net/diag.sh && bash diag.sh

            P 1 Antwort Letzte Antwort
            1
            • Thomas BraunT Thomas Braun

              @peter_n sagte in [Frage] Keine Instanz nach Adapterinstallation:

              Warum ging das im NOV 2021 scheinbar noch?

              Das ging noch nie.

              P Offline
              P Offline
              peter_n
              schrieb am zuletzt editiert von
              #6

              @thomas-braun

              OK Danke!

              P 1 Antwort Letzte Antwort
              0
              • P peter_n

                @thomas-braun

                OK Danke!

                P Offline
                P Offline
                peter_n
                schrieb am zuletzt editiert von
                #7

                @peter_n said in [gelöst] Keine Instanz nach Adapterinstallation:

                @thomas-braun

                OK Danke!

                1 Antwort Letzte Antwort
                0
                Antworten
                • In einem neuen Thema antworten
                Anmelden zum Antworten
                • Älteste zuerst
                • Neuste zuerst
                • Meiste Stimmen


                Support us

                ioBroker
                Community Adapters
                Donate

                608

                Online

                32.7k

                Benutzer

                82.3k

                Themen

                1.3m

                Beiträge
                Community
                Impressum | Datenschutz-Bestimmungen | Nutzungsbedingungen | Einwilligungseinstellungen
                ioBroker Community 2014-2025
                logo
                • Anmelden

                • Du hast noch kein Konto? Registrieren

                • Anmelden oder registrieren, um zu suchen
                • Erster Beitrag
                  Letzter Beitrag
                0
                • Home
                • Aktuell
                • Tags
                • Ungelesen 0
                • Kategorien
                • Unreplied
                • Beliebt
                • GitHub
                • Docu
                • Hilfe