Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Heinz53

    NEWS

    • 15. 05. Wartungsarbeiten am ioBroker Forum

    • Monatsrückblick - April 2025

    • Minor js-controller 7.0.7 Update in latest repo

    H
    • Profile
    • Following 0
    • Followers 0
    • Topics 4
    • Posts 27
    • Best 0
    • Groups 1

    Heinz53

    @Heinz53

    0
    Reputation
    18
    Profile views
    27
    Posts
    0
    Followers
    0
    Following
    Joined Last Online

    Heinz53 Follow
    Starter

    Latest posts made by Heinz53

    • RE: Alias Umwandlung bei JSON mit "null" bereitet Probleme

      Danke! Das war's. Nun funktioniert es.

        "common": {
          "name": "Steckdose_Strom28",
          "desc": "Manuell erzeugt",
          "role": "switch",
          "type": "boolean",
          "read": true,
          "write": true,
          "def": false,
          "alias": {
            "id": {
              "read": "mqtt.0.zigbee2mqtt.Strom28",
              "write": "mqtt.0.zigbee2mqtt.Strom28.set"
            },
            "read": "JSON.parse(val).state == 'ON'",
            "write": "JSON.stringify({state: val ? 'ON' : 'OFF'})"
          }
        },
      

      Es funktionieren beim direkten Schalten beide Schreibweisen (Groß oder Kleinschrift)

      ... und wieder was gelernt ...
      Danke für die Unterstützung!

      posted in Skripten / Logik
      H
      Heinz53
    • RE: Alias Umwandlung bei JSON mit "null" bereitet Probleme

      die mqtt Daten:
      {
      "child_lock": "UNLOCK",
      "countdown": 0,
      "current": 0,
      "energy": 0.03,
      "indicator_mode": "off/on",
      "last_seen": "2025-01-08T20:10:18+01:00",
      "linkquality": 138,
      "power": 0,
      "power_outage_memory": "restore",
      "state": "OFF",
      "update": {
      "installed_version": 80,
      "latest_version": 80,
      "state": "idle"
      },
      "update_available": false,
      "voltage": 225
      }

      posted in Skripten / Logik
      H
      Heinz53
    • RE: Alias Umwandlung bei JSON mit "null" bereitet Probleme

      Die mqtt Daten sind:

        "common": {
          "name": "Steckdose_Strom28",
          "desc": "Manuell erzeugt",
          "role": "switch",
          "type": "boolean",
          "read": true,
          "write": true,
          "def": false,
          "alias": {
            "id": {
              "read": "mqtt.0.zigbee2mqtt.Strom28",
              "write": "mqtt.0.zigbee2mqtt.Strom28.set"
            },
            "read": "JSON.parse(val).state == 'on'",
            "write": "JSON.stringify({state: val ? 'on' : 'off'})"
          }
        },
      

      Nach der Änderung von "def" erhalte ich keine Fehlermeldung mehr im log.
      Das Ausschalten ist weiterhin nicht möglich.

        "common": {
          "name": "Steckdose_Strom28",
          "desc": "Manuell erzeugt",
          "role": "switch",
          "type": "boolean",
          "read": true,
          "write": true,
          "def": false,
          "alias": {
            "id": {
              "read": "mqtt.0.zigbee2mqtt.Strom28",
              "write": "mqtt.0.zigbee2mqtt.Strom28.set"
            },
            "read": "JSON.parse(val).state == 'on'",
            "write": "JSON.stringify({state: val ? 'on' : 'off'})"
          }
        },
      
      posted in Skripten / Logik
      H
      Heinz53
    • RE: Alias Umwandlung bei JSON mit "null" bereitet Probleme

      @paul53 said in Alias Umwandlung bei JSON mit "null" bereitet Probleme:

      JSON.stringify({state: val ? 'on' : 'off'})

      @paul53 Nun erhalte ich folgende Fehlermeldung:
      Object alias.0.Steckdose.Strom28.state is invalid: Default value has to be type "boolean" but received type "string" This will throw an error up from js-controller version 7.0.0!

      Wenn die Steckdose ausgeschaltet ist wird sie über den alias eingeschaltet.
      Das Ausschalten über den alias ist nicht möglich.

        "common": {
          "name": "Steckdose_Strom28",
          "desc": "Manuell erzeugt",
          "role": "switch",
          "type": "boolean",
          "read": true,
          "write": true,
          "def": "",
          "alias": {
            "id": {
              "read": "mqtt.0.zigbee2mqtt.Strom28",
              "write": "mqtt.0.zigbee2mqtt.Strom28.set"
            },
            "read": "JSON.parse(val).state == 'on' ? true : false ",
            "write": "JSON.stringify({state: val ? 'on' : 'off'})"
          }
        },
      

      Was kann ich machen?

      posted in Skripten / Logik
      H
      Heinz53
    • RE: Alias Umwandlung bei JSON mit "null" bereitet Probleme

      Mein ursprüngliches Problem ist mittlerweile behoben. Der Zugriff auf den ioBroker war nach Start der Admin Instanz über SSH wieder möglich.

      iobroker start admin
      

      Als Ursache für meine Probleme vermute ich den "Schlafmodus" meiner Zigbee Button beim Versuch des öffnens eines "schlafenden" alias Datenpunktes in den Objekten.
      Dies führte bei mir reproduzierbar zu Problemen der Admin Instanz.
      Nach dem Setzen des Retain bei den Problematischen Geräten traten keine Abbrüche mehr auf.

      "retain": true
      

      @FredF und @paul53 : Ich habe noch Probleme meine Zigbee Steckdose (mit JSON) zu schalten.
      Bei der Anbindung eines direkten Datenpunktes funktioniert es:

        "common": {
          "name": "Test_1",
          "desc": "Manuell erzeugt",
          "role": "state",
          "type": "boolean",
          "read": true,
          "write": true,
          "def": false,
          "alias": {
            "id": "0_userdata.0.Test.TestOnOff",
            "read": "val == 'on' ? true : false",
            "write": "val ? 'on' : 'off'"
          }
        },
      

      Bei der Steckdose habe ich noch Probleme. Ich erhalte die Fehlermeldung:
      Invalid write function for "alias.0.Steckdose.Strom28.state": "val ? JSON.stringify{'state' : 'on'} : JSON.stringify{'state' : 'off'}" => Unexpected token '{'

      Ich habe schon viele Varianten erfolglos durchprobiert.

        "common": {
          "name": "state",
          "desc": "Manuell erzeugt",
          "role": "state",
          "type": "boolean",
          "read": true,
          "write": true,
          "def": "",
          "alias": {
            "id": {
              "read": "mqtt.0.zigbee2mqtt.Strom28",
              "write": "mqtt.0.zigbee2mqtt.Strom28.set"
            },
            "read": "JSON.parse(val).state == 'on' ? true : false",
            "write": "val ? JSON.stringify{'state' : 'on'} : JSON.stringify{'state' : 'off'}"
          }
        },
      

      Wie geht es richtig?

      posted in Skripten / Logik
      H
      Heinz53
    • RE: Alias Umwandlung bei JSON mit "null" bereitet Probleme

      Danke für eure Tipps. Leider kann ich sie gerade nicht testen weil mein ioBroker in einer Endlosschleife läuft.

      Ich habe ihn gestoppt, neu gestartet und den Container neu erstellt., ioBroker fix ausgeführt, ... Das Ergebnis bleibt gleich:

      This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). The promise rejected with the reason:
      
      TypeError: Cannot read properties of undefined (reading 'toString')
      
          at applyAliasConvenienceConversion (/opt/iobroker/node_modules/@iobroker/js-controller-common-db/src/lib/common/aliasProcessing.ts:78:30)
      
          at Object.formatAliasValue (/opt/iobroker/node_modules/@iobroker/js-controller-common-db/src/lib/common/tools.ts:2753:17)
      
          at change (/opt/iobroker/node_modules/@iobroker/js-controller-adapter/src/lib/adapter/adapter.ts:10961:37)
      
          at Immediate.<anonymous> (file:///opt/iobroker/node_modules/@iobroker/db-states-redis/src/lib/states/statesInRedisClient.ts:383:37)
      
          at processImmediate (node:internal/timers:483:21)
      
      This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). The promise rejected with the reason:
      
      TypeError: Cannot read properties of undefined (reading 'toString')
      
          at applyAliasConvenienceConversion (/opt/iobroker/node_modules/@iobroker/js-controller-common-db/src/lib/common/aliasProcessing.ts:78:30)
      
          at Object.formatAliasValue (/opt/iobroker/node_modules/@iobroker/js-controller-common-db/src/lib/common/tools.ts:2753:17)
      
          at change (/opt/iobroker/node_modules/@iobroker/js-controller-adapter/src/lib/adapter/adapter.ts:10961:37)
      
          at Immediate.<anonymous> (file:///opt/iobroker/node_modules/@iobroker/db-states-redis/src/lib/states/statesInRedisClient.ts:383:37)
      
          at processImmediate (node:internal/timers:483:21)
      
      This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). The promise rejected with the reason:
      
      TypeError: Cannot read properties of undefined (reading 'toString')
      
          at applyAliasConvenienceConversion (/opt/iobroker/node_modules/@iobroker/js-controller-common-db/src/lib/common/aliasProcessing.ts:78:30)
      
          at Object.formatAliasValue (/opt/iobroker/node_modules/@iobroker/js-controller-common-db/src/lib/common/tools.ts:2753:17)
      
          at change (/opt/iobroker/node_modules/@iobroker/js-controller-adapter/src/lib/adapter/adapter.ts:10961:37)
      
          at Immediate.<anonymous> (file:///opt/iobroker/node_modules/@iobroker/db-states-redis/src/lib/states/statesInRedisClient.ts:383:37)
      
          at processImmediate (node:internal/timers:483:21)
      
      This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). The promise rejected with the reason:
      
      TypeError: Cannot read properties of undefined (reading 'toString')
      
          at applyAliasConvenienceConversion (/opt/iobroker/node_modules/@iobroker/js-controller-common-db/src/lib/common/aliasProcessing.ts:78:30)
      
          at Object.formatAliasValue (/opt/iobroker/node_modules/@iobroker/js-controller-common-db/src/lib/common/tools.ts:2753:17)
      
          at change (/opt/iobroker/node_modules/@iobroker/js-controller-adapter/src/lib/adapter/adapter.ts:10961:37)
      
          at Immediate.<anonymous> (file:///opt/iobroker/node_modules/@iobroker/db-states-redis/src/lib/states/statesInRedisClient.ts:383:37)
      
          at processImmediate (node:internal/timers:483:21)
      

      Ich kann nicht über den ioBroker auf meine Datenpunkte zugreifen.
      Vermutlich habe ich noch ungültige alias Definitionen.

      Wie kann ich den Zugriff wieder herstellen?

      posted in Skripten / Logik
      H
      Heinz53
    • RE: Alias Umwandlung bei JSON mit "null" bereitet Probleme

      @paul53 : DANKE! Das ist die Lösung!

      Es war für mich unverständlich dass falsche Werte im alias das ganze System aus dem Tritt bringen.

      Vielleicht hast du noch einen Tipp für mich: Die Steckdosen melden über zigbee2mqtt als string "on" oder off.
      Ich versuche sie als boolean umzuwandeln und erhalte folgende Meldung

      Object alias.0.Steckdose.Strom28.POWER is invalid: Default value has to be type "boolean" but received type "string" This will throw an error up from js-controller version 7.0.0!
      
      {
        "common": {
          "name": "POWER",
          "desc": "Manuell erzeugt",
          "role": "state",
          "type": "boolean",
          "read": true,
          "write": true,
          "def": "",
          "alias": {
            "id": {
              "read": "mqtt.0.zigbee2mqtt.Strom28",
              "write": "mqtt.0.zigbee2mqtt.Strom28.set"
            },
            "read": "val == 'on' ? true : val == 'off' ? false : null"
          }
        },
        "type": "state",
        "native": {},
        "_id": "alias.0.Steckdose.Strom28.POWER",
        "acl": {
          "object": 1636,
          "state": 1636,
          "owner": "system.user.admin",
          "ownerGroup": "system.group.administrator"
        },
        "from": "system.adapter.admin.0",
        "user": "system.user.admin",
        "ts": 1735929801444
      }
      

      Ist die Umsetzung nicht mehr möglich?

      Vielen Dank für deine Unterstützung
      Heinz

      posted in Skripten / Logik
      H
      Heinz53
    • Alias Umwandlung bei JSON mit "null" bereitet Probleme

      Hallo allerseits,
      mein ioBroker lief stabil in einem Container auf meiner synology.
      Seit einigen Tagen habe ich nach der Umstellung von zigbee auf zigbee2mqtt Probleme:

      Beim starten des Containers erscheint folgende Fehlermeldung:


      ================================== > LOG REDIRECT system.adapter.admin.0 => true [system.adapter.admin.0.logging]
      This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). The promise rejected with the reason:
      TypeError: Cannot read properties of undefined (reading 'toString')
      at applyAliasConvenienceConversion (/opt/iobroker/node_modules/@iobroker/js-controller-common-db/src/lib/common/aliasProcessing.ts:78:30)
      at Object.formatAliasValue (/opt/iobroker/node_modules/@iobroker/js-controller-common-db/src/lib/common/tools.ts:2753:17)
      at AdapterClass._processStatesSecondary (/opt/iobroker/node_modules/@iobroker/js-controller-adapter/src/lib/adapter/adapter.ts:9376:31)
      at processTicksAndRejections (node:internal/process/task_queues:95:5)
      at AdapterClass._getForeignStates (/opt/iobroker/node_modules/@iobroker/js-controller-adapter/src/lib/adapter/adapter.ts:9526:29)

      Beim Aufruf der Instanz mit einem alias Datenpunkt friert das System ein, und erstellt folgende Fehlermeldungen:
      alias.png

      host.iobroker
      2025-01-02 18:13:58.435	error	instance system.adapter.admin.0 terminated with code 6 (UNCAUGHT_EXCEPTION)
      
      host.iobroker
      2025-01-02 18:13:58.434	error	Caught by controller[1]: at Admin._getForeignStates (/opt/iobroker/node_modules/@iobroker/js-controller-adapter/src/lib/adapter/adapter.ts:9526:29)
      
      host.iobroker
      2025-01-02 18:13:58.434	error	Caught by controller[1]: at processTicksAndRejections (node:internal/process/task_queues:95:5)
      
      host.iobroker
      2025-01-02 18:13:58.434	error	Caught by controller[1]: at Admin._processStatesSecondary (/opt/iobroker/node_modules/@iobroker/js-controller-adapter/src/lib/adapter/adapter.ts:9376:31)
      
      host.iobroker
      2025-01-02 18:13:58.434	error	Caught by controller[1]: at Object.formatAliasValue (/opt/iobroker/node_modules/@iobroker/js-controller-common-db/src/lib/common/tools.ts:2753:17)
      
      host.iobroker
      2025-01-02 18:13:58.434	error	Caught by controller[1]: at applyAliasConvenienceConversion (/opt/iobroker/node_modules/@iobroker/js-controller-common-db/src/lib/common/aliasProcessing.ts:78:30)
      
      host.iobroker
      2025-01-02 18:13:58.434	error	Caught by controller[1]: TypeError: Cannot read properties of undefined (reading 'toString')
      
      host.iobroker
      2025-01-02 18:13:58.433	error	Caught by controller[0]: This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). The promise rejected with the reason:
      
      admin.0
      2025-01-02 18:13:57.822	error	Cannot read properties of undefined (reading 'toString')
      
      admin.0
      2025-01-02 18:13:57.821	error	TypeError: Cannot read properties of undefined (reading 'toString') at applyAliasConvenienceConversion (/opt/iobroker/node_modules/@iobroker/js-controller-common-db/src/lib/common/aliasProcessing.ts:78:30) at Object.formatAliasValue (/opt/iobroker/node_modules/@iobroker/js-controller-common-db/src/lib/common/tools.ts:2753:17) at Admin._processStatesSecondary (/opt/iobroker/node_modules/@iobroker/js-controller-adapter/src/lib/adapter/adapter.ts:9376:31) at processTicksAndRejections (node:internal/process/task_queues:95:5) at Admin._getForeignStates (/opt/iobroker/node_modules/@iobroker/js-controller-adapter/src/lib/adapter/adapter.ts:9526:29)
      
      admin.0
      2025-01-02 18:13:57.672	error	unhandled promise rejection: Cannot read properties of undefined (reading 'toString')
      
      admin.0
      2025-01-02 18:13:57.672	error	Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch().
      
      

      Die Datenpunkte sind folgendermaßen definiert:

      alias.0.Button.Cube1.action - mit Typ mixed

      
      {
        "common": {
          "name": "action",
          "desc": "Manuell erzeugt",
          "role": "state",
          "type": "mixed",
          "read": true,
          "write": true,
          "def": "",
          "alias": {
            "id": "mqtt.0.zigbee2mqtt.Cube1",
            "read": "JSON.parse(val).action"
          }
        },
        "type": "state",
        "native": {},
        "_id": "alias.0.Button.Cube1.action",
        "acl": {
          "object": 1636,
          "state": 1636,
          "owner": "system.user.admin",
          "ownerGroup": "system.group.administrator"
        },
        "from": "system.adapter.admin.0",
        "user": "system.user.admin",
        "ts": 1735832197825
      }
      

      alias.0.Button.Cube1.alias.0.Button.Cube1.action_from_side - mit Typ String

       {
        "common": {
          "name": "action_from_side",
          "desc": "Manuell erzeugt",
          "role": "state",
          "type": "string",
          "read": true,
          "write": true,
          "def": "",
          "alias": {
            "id": "mqtt.0.zigbee2mqtt.Cube1",
            "read": "JSON.parse(val).action_from_side"
          }
        },
        "type": "state",
        "native": {},
        "_id": "alias.0.Button.Cube1.action_from_side",
        "acl": {
          "object": 1636,
          "state": 1636,
          "owner": "system.user.admin",
          "ownerGroup": "system.group.administrator"
        },
        "from": "system.adapter.admin.0",
        "user": "system.user.admin",
        "ts": 1735834100918
      }
      

      Meine Systemeinstellungen habe ich mit iobroker diag hier eingefügt:


      The ioBroker diag script is not specifically designed to run in Docker.
      Although it is generally safe to use, use it at your own risk.
      *** iob diag is starting up, please wait ***
      
      *** ioBroker Diagnosis ***

      Please stretch the window of your terminal programm (puTTY) as wide as possible or switch to full screen

      The following checks may give hints to potential malconfigurations or errors, please post them in our forum:

      https://forum.iobroker.net

      Just copy and paste the Summary Page, including the ``` characters at start and end.
      It helps us to help you!

      Press any key to continue
      
      ========== Start marking the full check here ===========

      Script v.2024-10-19
      
      *** BASE SYSTEM ***
      Hardware Vendor : Synology
      Kernel          : x86_64
      Userland        : 64 bit
      Docker          : v10.0.0
      Virtualization  : docker
      Kernel          : x86_64
      Userland        : 64 bit
      
      Systemuptime and Load:
       17:47:39 up 15 days, 21:39,  0 user,  load average: 0.45, 0.39, 0.44
      CPU threads: 4
      
      
      *** LIFE CYCLE STATUS ***
      Operating System is the current Debian stable version codenamed 'bookworm'!
      
      *** TIME AND TIMEZONES ***
      Thu Jan  2 16:47:39 UTC 2025
      Thu Jan  2 17:47:39 CET 2025
      CET +0100
      Etc/UTC
      
      *** Users and Groups ***
      User that called 'iob diag':
      root
      HOME=/root
      GROUPS=root
      
      User that is running 'js-controller':
      js-controller is not running
      
      *** DISPLAY-SERVER SETUP ***
      Display-Server: false
      Desktop: 	
      Terminal: 	
      
      *** MEMORY ***
                     total        used        free      shared  buff/cache   available
      Mem:             20G        5.0G        2.3G        336M         14G         15G
      Swap:            14G        1.4G         13G
      Total:           35G        6.4G         15G
      
      Active iob-Instances: 	1
      
              19852 M total memory
               4771 M used memory
               8293 M active memory
               7281 M inactive memory
               2151 M free memory
               1065 M buffer memory
              12608 M swap cache
              13959 M total swap
               1297 M used swap
              12662 M free swap
      
      *** top - Table Of Processes  ***
      top - 17:47:39 up 15 days, 21:39,  0 user,  load average: 0.45, 0.39, 0.44
      Tasks:   8 total,   1 running,   7 sleeping,   0 stopped,   0 zombie
      %Cpu(s):  0.0 us,  0.0 sy,  0.0 ni,100.0 id,  0.0 wa,  0.0 hi,  0.0 si,  0.0 st 
      MiB Mem :  19852.1 total,   2150.2 free,   4772.8 used,  13673.8 buff/cache     
      MiB Swap:  13959.9 total,  12662.6 free,   1297.3 used.  15079.3 avail Mem 
      
      
      *** DMESG CRITICAL ERRORS ***
      No critical errors detected
      
      *** FILESYSTEM ***
      Filesystem             Type   Size  Used Avail Use% Mounted on
      /dev/mapper/cachedev_0 btrfs   14T  7.4T  6.7T  53% /
      tmpfs                  tmpfs   64M     0   64M   0% /dev
      tmpfs                  tmpfs  9.7G     0  9.7G   0% /sys/fs/cgroup
      shm                    tmpfs   64M     0   64M   0% /dev/shm
      /dev/mapper/cachedev_0 btrfs   14T  7.4T  6.7T  53% /opt/iobroker
      /dev/mapper/cachedev_0 btrfs   14T  7.4T  6.7T  53% /etc/hosts
      tmpfs                  tmpfs  9.7G     0  9.7G   0% /proc/acpi
      tmpfs                  tmpfs  9.7G     0  9.7G   0% /proc/scsi
      tmpfs                  tmpfs  9.7G     0  9.7G   0% /sys/firmware
      
      Messages concerning ext4 filesystem in dmesg:
      
      Show mounted filesystems:
      TARGET             SOURCE                                                                                                                         FSTYPE OPTIONS
      /                  /dev/mapper/cachedev_0[/@syno/@docker/btrfs/subvolumes/192331e0bdd039fa603c9a2d9aa939e3abd9c6d9cb2905154c13a7371af3a5bb]       btrfs  rw,nodev,relatime,ssd,synoacl,space_cache=v2,auto_reclaim_space,metadata_ratio=50,syno_allocator,subvolid=6521,subvol=/@syno/@docker/btrfs/subvolumes/192331e0bdd039fa603c9a2d9aa939e3abd9c6d9cb2905154c13a7371af3a5bb
      |-/opt/iobroker    /dev/mapper/cachedev_0[/@syno/docker/iobroker245]                                                                              btrfs  rw,nodev,relatime,ssd,synoacl,space_cache=v2,auto_reclaim_space,metadata_ratio=50,syno_allocator,subvolid=786,subvol=/@syno/docker
      |-/etc/resolv.conf /dev/mapper/cachedev_0[/@syno/@docker/containers/e01a8487ad4b8b2f86e8c2510e9eb4a8ee872205cc6b01bf942823a07b8d393e/resolv.conf] btrfs  rw,nodev,relatime,ssd,synoacl,space_cache=v2,auto_reclaim_space,metadata_ratio=50,syno_allocator,subvolid=257,subvol=/@syno
      |-/etc/hostname    /dev/mapper/cachedev_0[/@syno/@docker/containers/e01a8487ad4b8b2f86e8c2510e9eb4a8ee872205cc6b01bf942823a07b8d393e/hostname]    btrfs  rw,nodev,relatime,ssd,synoacl,space_cache=v2,auto_reclaim_space,metadata_ratio=50,syno_allocator,subvolid=257,subvol=/@syno
      `-/etc/hosts       /dev/mapper/cachedev_0[/@syno/@docker/containers/e01a8487ad4b8b2f86e8c2510e9eb4a8ee872205cc6b01bf942823a07b8d393e/hosts]       btrfs  rw,nodev,relatime,ssd,synoacl,space_cache=v2,auto_reclaim_space,metadata_ratio=50,syno_allocator,subvolid=257,subvol=/@syno
      
      Files in neuralgic directories:
      
      /var:
      35M	/var/
      33M	/var/lib
      19M	/var/lib/apt/lists
      19M	/var/lib/apt
      13M	/var/lib/dpkg/info
      
      
      /opt/iobroker/backups:
      840M	/opt/iobroker/backups/
      
      /opt/iobroker/iobroker-data:
      1.9G	/opt/iobroker/iobroker-data/
      1.3G	/opt/iobroker/iobroker-data/files
      616M	/opt/iobroker/iobroker-data/files/javascript.admin
      560M	/opt/iobroker/iobroker-data/files/javascript.admin/static
      558M	/opt/iobroker/iobroker-data/files/javascript.admin/static/js
      
      The five largest files in iobroker-data are:
      32M	/opt/iobroker/iobroker-data/objects.jsonl
      27M	/opt/iobroker/iobroker-data/files/tankerkoenig.admin/build/index.js.map
      26M	/opt/iobroker/iobroker-data/files/echarts/static/js/main.41cee985.js.map
      26M	/opt/iobroker/iobroker-data/files/echarts.admin/chart/static/js/main.41cee985.js.map
      24M	/opt/iobroker/iobroker-data/files/web.admin/static/js/main.135279a0.js.map
      
      USB-Devices by-id:
      USB-Sticks -  Avoid direct links to /dev/tty* in your adapter setups, please always prefer the links 'by-id':
      
      No Devices found 'by-id'
      
      *** NodeJS-Installation ***
      
      /usr/bin/nodejs 	v20.18.1
      /usr/bin/node 		v20.18.1
      /usr/bin/npm 		10.8.2
      /usr/bin/npx 		10.8.2
      /usr/bin/corepack 	0.29.4
      
      nodejs:
        Installed: 20.18.1-1nodesource1
        Candidate: 20.18.1-1nodesource1
        Version table:
       *** 20.18.1-1nodesource1 1001
              500 https://deb.nodesource.com/node_20.x nodistro/main amd64 Packages
              100 /var/lib/dpkg/status
           20.18.0-1nodesource1 1001
              500 https://deb.nodesource.com/node_20.x nodistro/main amd64 Packages
           20.17.0-1nodesource1 1001
              500 https://deb.nodesource.com/node_20.x nodistro/main amd64 Packages
           20.16.0-1nodesource1 1001
              500 https://deb.nodesource.com/node_20.x nodistro/main amd64 Packages
           20.15.1-1nodesource1 1001
              500 https://deb.nodesource.com/node_20.x nodistro/main amd64 Packages
           20.15.0-1nodesource1 1001
              500 https://deb.nodesource.com/node_20.x nodistro/main amd64 Packages
           20.14.0-1nodesource1 1001
              500 https://deb.nodesource.com/node_20.x nodistro/main amd64 Packages
           20.13.1-1nodesource1 1001
              500 https://deb.nodesource.com/node_20.x nodistro/main amd64 Packages
           20.13.0-1nodesource1 1001
              500 https://deb.nodesource.com/node_20.x nodistro/main amd64 Packages
           20.12.2-1nodesource1 1001
              500 https://deb.nodesource.com/node_20.x nodistro/main amd64 Packages
           20.12.1-1nodesource1 1001
              500 https://deb.nodesource.com/node_20.x nodistro/main amd64 Packages
           20.12.0-1nodesource1 1001
              500 https://deb.nodesource.com/node_20.x nodistro/main amd64 Packages
           20.11.1-1nodesource1 1001
              500 https://deb.nodesource.com/node_20.x nodistro/main amd64 Packages
           20.11.0-1nodesource1 1001
              500 https://deb.nodesource.com/node_20.x nodistro/main amd64 Packages
           20.10.0-1nodesource1 1001
              500 https://deb.nodesource.com/node_20.x nodistro/main amd64 Packages
           20.9.0-1nodesource1 1001
              500 https://deb.nodesource.com/node_20.x nodistro/main amd64 Packages
           20.8.1-1nodesource1 1001
              500 https://deb.nodesource.com/node_20.x nodistro/main amd64 Packages
           20.8.0-1nodesource1 1001
              500 https://deb.nodesource.com/node_20.x nodistro/main amd64 Packages
           20.7.0-1nodesource1 1001
              500 https://deb.nodesource.com/node_20.x nodistro/main amd64 Packages
           20.6.1-1nodesource1 1001
              500 https://deb.nodesource.com/node_20.x nodistro/main amd64 Packages
           20.6.0-1nodesource1 1001
              500 https://deb.nodesource.com/node_20.x nodistro/main amd64 Packages
           20.5.1-1nodesource1 1001
              500 https://deb.nodesource.com/node_20.x nodistro/main amd64 Packages
           20.5.0-1nodesource1 1001
              500 https://deb.nodesource.com/node_20.x nodistro/main amd64 Packages
           20.4.0-1nodesource1 1001
              500 https://deb.nodesource.com/node_20.x nodistro/main amd64 Packages
           20.3.1-1nodesource1 1001
              500 https://deb.nodesource.com/node_20.x nodistro/main amd64 Packages
           20.3.0-1nodesource1 1001
              500 https://deb.nodesource.com/node_20.x nodistro/main amd64 Packages
           20.2.0-1nodesource1 1001
              500 https://deb.nodesource.com/node_20.x nodistro/main amd64 Packages
           20.1.0-1nodesource1 1001
              500 https://deb.nodesource.com/node_20.x nodistro/main amd64 Packages
           20.0.0-1nodesource1 1001
              500 https://deb.nodesource.com/node_20.x nodistro/main amd64 Packages
           18.19.0+dfsg-6~deb12u2 500
              500 http://deb.debian.org/debian bookworm/main amd64 Packages
           18.19.0+dfsg-6~deb12u1 500
              500 http://deb.debian.org/debian-security bookworm-security/main amd64 Packages
      
      Temp directories causing deletion problem: 0
      No problems detected
      
      Errors in npm tree: 0
      No problems detected
      
      *** ioBroker-Installation ***
      
      ioBroker Status
      iobroker is not running on this host.
      
      
      Objects type: jsonl
      States  type: jsonl
      
      Hosts:
      iobroker            iobroker (version: 7.0.3, hostname: iobroker      , alive, uptime: 3017)
      
      Core adapters versions
      js-controller: 	7.0.3
      admin: 		7.1.5
      javascript: 	8.8.3
      
      nodejs modules from github: 	1
      | +-- syno@3.0.0 (git+https://git@github.com/MeisterTR/syno.git#0104a973d33fe332aa6b1ab5be7fe8c57d3c68b0)
      
      Adapter State
        system.adapter.admin.0                  : admin                 : iobroker                                 -  enabled, compact disabled, port: 8081, bind: 0.0.0.0, run as: admin
        system.adapter.alexa2.0                 : alexa2                : iobroker                                 -  enabled, compact disabled
        system.adapter.alias-manager.0          : alias-manager         : iobroker                                 - disabled, compact disabled
        system.adapter.backitup.0               : backitup              : iobroker                                 -  enabled, compact disabled
        system.adapter.broadlink2.0             : broadlink2            : iobroker                                 - disabled
        system.adapter.cloud.0                  : cloud                 : iobroker                                 -  enabled, compact disabled
        system.adapter.device-reminder.0        : device-reminder       : iobroker                                 -  enabled, compact disabled
        system.adapter.device-watcher.0         : device-watcher        : iobroker                                 -  enabled, compact disabled
        system.adapter.discovery.0              : discovery             : iobroker                                 - disabled, compact disabled
        system.adapter.dwd.0                    : dwd                   : iobroker                                 -  enabled, compact disabled
        system.adapter.echarts.0                : echarts               : iobroker                                 -  enabled, compact disabled
        system.adapter.eventlist.0              : eventlist             : iobroker                                 -  enabled, compact disabled
        system.adapter.feiertage.0              : feiertage             : iobroker                                 -  enabled, compact disabled
        system.adapter.flot.0                   : flot                  : iobroker                                 - disabled
        system.adapter.fullybrowser.0           : fullybrowser          : iobroker                                 -  enabled, compact disabled
        system.adapter.hm-rega.1                : hm-rega               : iobroker                                 -  enabled, compact disabled
        system.adapter.hm-rpc.1                 : hm-rpc                : iobroker                                 -  enabled, compact disabled, port: 0
        system.adapter.hm-rpc.2                 : hm-rpc                : iobroker                                 -  enabled, compact disabled, port: 0
        system.adapter.hm-rpc.3                 : hm-rpc                : iobroker                                 -  enabled, compact disabled, port: 0
        system.adapter.ical.0                   : ical                  : iobroker                                 -  enabled, compact disabled
        system.adapter.icons-addictive-flavour-png.0: icons-addictive-flavour-png: iobroker                                 - disabled
        system.adapter.influxdb.0               : influxdb              : iobroker                                 - disabled, compact disabled, port: 8086
        system.adapter.javascript.0             : javascript            : iobroker                                 -  enabled, compact disabled
        system.adapter.mobile.0                 : mobile                : iobroker                                 - disabled
        system.adapter.mqtt.0                   : mqtt                  : iobroker                                 -  enabled, compact disabled, port: 1883, bind: 0.0.0.0
        system.adapter.openweathermap.0         : openweathermap        : iobroker                                 - disabled, compact disabled
        system.adapter.sayit.0                  : sayit                 : iobroker                                 -  enabled, compact disabled
        system.adapter.scenes.0                 : scenes                : iobroker                                 - disabled, compact disabled
        system.adapter.shelly.0                 : shelly                : iobroker                                 -  enabled, compact disabled, port: 1882, bind: 0.0.0.0
        system.adapter.simple-api.0             : simple-api            : iobroker                                 -  enabled, compact disabled, port: 8087, bind: 0.0.0.0, run as: admin
        system.adapter.socketio.0               : socketio              : iobroker                                 -  enabled, compact disabled, port: 8084, bind: 0.0.0.0, run as: admin
        system.adapter.sonoff.0                 : sonoff                : iobroker                                 -  enabled, compact disabled, port: 1883, bind: 0.0.0.0
        system.adapter.sonos.0                  : sonos                 : iobroker                                 -  enabled, compact disabled
        system.adapter.statistics.0             : statistics            : iobroker                                 -  enabled, compact disabled
        system.adapter.synology.0               : synology              : iobroker                                 - disabled, compact disabled, port: 5000
        system.adapter.tankerkoenig.0           : tankerkoenig          : iobroker                                 - disabled, compact disabled
        system.adapter.telegram.0               : telegram              : iobroker                                 -  enabled, compact disabled, port: 8443, bind: 0.0.0.0
        system.adapter.text2command.0           : text2command          : iobroker                                 -  enabled, compact disabled
        system.adapter.tr-064.0                 : tr-064                : iobroker                                 -  enabled, compact disabled
        system.adapter.trashschedule.0          : trashschedule         : iobroker                                 - disabled, compact disabled
        system.adapter.vis-2-widgets-energy.0   : vis-2-widgets-energy  : iobroker                                 - disabled
        system.adapter.vis-2-widgets-gauges.0   : vis-2-widgets-gauges  : iobroker                                 - disabled
        system.adapter.vis-2-widgets-inventwo.0 : vis-2-widgets-inventwo: iobroker                                 - disabled
        system.adapter.vis-2-widgets-material.0 : vis-2-widgets-material: iobroker                                 - disabled
        system.adapter.vis-2.0                  : vis-2                 : iobroker                                 -  enabled, compact disabled
        system.adapter.vis-bars.0               : vis-bars              : iobroker                                 - disabled
        system.adapter.vis-colorpicker.0        : vis-colorpicker       : iobroker                                 - disabled
        system.adapter.vis-icontwo.0            : vis-icontwo           : iobroker                                 - disabled, compact disabled
        system.adapter.vis-inventwo.0           : vis-inventwo          : iobroker                                 -  enabled, compact disabled
        system.adapter.vis-timeandweather.0     : vis-timeandweather    : iobroker                                 - disabled
        system.adapter.vis.0                    : vis                   : iobroker                                 - disabled, compact disabled
        system.adapter.web.0                    : web                   : iobroker                                 -  enabled, compact disabled, port: 8082, bind: 0.0.0.0, run as: admin
        system.adapter.yr.0                     : yr                    : iobroker                                 -  enabled, compact disabled
      
      + instance is alive
      
      Enabled adapters with bindings
        system.adapter.admin.0                  : admin                 : iobroker                                 -  enabled, compact disabled, port: 8081, bind: 0.0.0.0, run as: admin
        system.adapter.hm-rpc.1                 : hm-rpc                : iobroker                                 -  enabled, compact disabled, port: 0
        system.adapter.hm-rpc.2                 : hm-rpc                : iobroker                                 -  enabled, compact disabled, port: 0
        system.adapter.hm-rpc.3                 : hm-rpc                : iobroker                                 -  enabled, compact disabled, port: 0
        system.adapter.mqtt.0                   : mqtt                  : iobroker                                 -  enabled, compact disabled, port: 1883, bind: 0.0.0.0
        system.adapter.shelly.0                 : shelly                : iobroker                                 -  enabled, compact disabled, port: 1882, bind: 0.0.0.0
        system.adapter.simple-api.0             : simple-api            : iobroker                                 -  enabled, compact disabled, port: 8087, bind: 0.0.0.0, run as: admin
        system.adapter.socketio.0               : socketio              : iobroker                                 -  enabled, compact disabled, port: 8084, bind: 0.0.0.0, run as: admin
        system.adapter.sonoff.0                 : sonoff                : iobroker                                 -  enabled, compact disabled, port: 1883, bind: 0.0.0.0
        system.adapter.telegram.0               : telegram              : iobroker                                 -  enabled, compact disabled, port: 8443, bind: 0.0.0.0
        system.adapter.web.0                    : web                   : iobroker                                 -  enabled, compact disabled, port: 8082, bind: 0.0.0.0, run as: admin
      
      ioBroker-Repositories
      ┌─────────┬────────────────────┬─────────────────────────────────────────────────────────┬──────────────┐
      │ (index) │ name               │ url                                                     │ auto upgrade │
      ├─────────┼────────────────────┼─────────────────────────────────────────────────────────┼──────────────┤
      │ 0       │ 'Stable (default)' │ 'http://download.iobroker.net/sources-dist.json'        │ false        │
      │ 1       │ 'Beta (latest)'    │ 'http://download.iobroker.net/sources-dist-latest.json' │ false        │
      └─────────┴────────────────────┴─────────────────────────────────────────────────────────┴──────────────┘
      
      Active repo(s): Stable (default)
      Upgrade policy: none
      
      Installed ioBroker-Instances
      Used repository: Stable (default)
      Adapter    "admin"        : 7.1.5    , installed 7.1.5
      Adapter    "alexa2"       : 3.26.5   , installed 3.26.5
      Adapter    "alias-manager": 2.0.0    , installed 2.0.0
      Adapter    "backitup"     : 3.0.25   , installed 3.0.25
      Adapter    "broadlink2"   : 2.3.0    , installed 2.3.0
      Adapter    "cloud"        : 5.0.1    , installed 5.0.1
      Adapter    "device-reminder": 3.1.2  , installed 3.1.2
      Adapter    "device-watcher": 2.12.1  , installed 2.12.1
      Adapter    "discovery"    : 5.0.0    , installed 5.0.0
      Adapter    "dwd"          : 2.8.5    , installed 2.8.5
      Adapter    "echarts"      : 1.9.2    , installed 1.9.2
      Adapter    "eventlist"    : 2.0.1    , installed 2.0.1
      Adapter    "feiertage"    : 1.2.0    , installed 1.2.0
      Adapter    "flot"         : 1.12.0   , installed 1.12.0
      Adapter    "fullybrowser" : 3.0.12   , installed 3.0.12
      Adapter    "hm-rega"      : 5.1.0    , installed 5.1.0
      Adapter    "hm-rpc"       : 2.0.2    , installed 2.0.2
      Adapter    "ical"         : 1.16.1   , installed 1.16.1
      Adapter    "icons-addictive-flavour-png": 0.1.0, installed 0.1.0
      Adapter    "influxdb"     : 4.0.2    , installed 4.0.2
      Adapter    "javascript"   : 8.8.3    , installed 8.8.3
      Controller "js-controller": 7.0.6    , installed 7.0.3  [Updatable]
      Adapter    "mobile"       : 1.0.1    , installed 1.0.1
      Adapter    "mqtt"         : 6.1.2    , installed 6.1.2
      Adapter    "openweathermap": 1.1.2   , installed 1.1.2
      Adapter    "sayit"        : 5.0.0    , installed 5.0.0
      Adapter    "scenes"       : 3.2.3    , installed 3.2.3
      Adapter    "shelly"       : 8.2.1    , installed 8.2.1
      Adapter    "simple-api"   : 2.8.0    , installed 2.8.0
      Adapter    "socketio"     : 6.7.1    , installed 6.7.1
      Adapter    "sonoff"       : 3.1.2    , installed 3.1.2
      Adapter    "sonos"        : 3.0.0    , installed 3.0.0
      Adapter    "statistics"   : 2.4.0    , installed 2.4.0
      Adapter    "synology"     : 3.1.0    , installed 3.1.0
      Adapter    "tankerkoenig" : 3.4.0    , installed 3.4.0
      Adapter    "telegram"     : 3.9.0    , installed 3.9.0
      Adapter    "text2command" : 3.0.3    , installed 3.0.3
      Adapter    "tr-064"       : 4.3.0    , installed 4.3.0
      Adapter    "trashschedule": 3.3.0    , installed 3.3.0
      Adapter    "vis"          : 1.5.6    , installed 1.5.6
      Adapter    "vis-2"        : 2.9.64   , installed 2.9.64
      Adapter    "vis-2-widgets-energy": 1.0.2, installed 1.0.2
      Adapter    "vis-2-widgets-gauges": 1.1.0, installed 1.1.0
      Adapter    "vis-2-widgets-inventwo": 0.1.11, installed 0.1.11
      Adapter    "vis-2-widgets-material": 1.4.10, installed 1.4.10
      Adapter    "vis-bars"     : 0.1.4    , installed 0.1.4
      Adapter    "vis-colorpicker": 2.0.3  , installed 2.0.3
      Adapter    "vis-icontwo"  : 1.5.0    , installed 1.6.3
      Adapter    "vis-inventwo" : 3.3.4    , installed 3.3.4
      Adapter    "vis-timeandweather": 1.2.2, installed 1.2.2
      Adapter    "web"          : 6.2.5    , installed 6.2.5
      Adapter    "ws"           : 2.6.2    , installed 2.6.2
      Adapter    "yr"           : 5.3.0    , installed 5.3.0
      
      Objects and States
      Please stand by - This may take a while
      Objects: 	14941
      States: 	12189
      
      *** OS-Repositories and Updates ***
      Hit:1 http://deb.debian.org/debian bookworm InRelease
      Hit:2 http://deb.debian.org/debian bookworm-updates InRelease
      Hit:3 http://deb.debian.org/debian-security bookworm-security InRelease
      Hit:4 https://deb.nodesource.com/node_20.x nodistro InRelease
      Reading package lists...
      Pending Updates: 0
      
      *** Listening Ports ***
      Active Internet connections (only servers)
      Proto Recv-Q Send-Q Local Address           Foreign Address         State       User       Inode      PID/Program name    
      tcp        0      0 127.0.0.11:36365        0.0.0.0:*               LISTEN      0          361034420  -                   
      udp        0      0 127.0.0.11:43162        0.0.0.0:*                           0          361034419  -                   
      
      *** Log File - Last 25 Lines ***
      
      2025-01-02 17:31:01.056  - warn: host.iobroker instance system.adapter.sayit.0 terminated due to SIGKILL
      2025-01-02 17:31:01.056  - info: host.iobroker instance system.adapter.sayit.0 terminated with code null ()
      2025-01-02 17:31:01.056  - info: host.iobroker instance system.adapter.vis-inventwo.0 terminated with code 11 (ADAPTER_REQUESTED_TERMINATION)
      2025-01-02 17:31:01.449  - warn: host.iobroker instance system.adapter.telegram.0 terminated due to SIGKILL
      2025-01-02 17:31:01.449  - info: host.iobroker instance system.adapter.telegram.0 terminated with code null ()
      2025-01-02 17:31:01.449  - warn: host.iobroker instance system.adapter.hm-rega.1 terminated due to SIGKILL
      2025-01-02 17:31:01.449  - info: host.iobroker instance system.adapter.hm-rega.1 terminated with code null ()
      2025-01-02 17:31:01.483  - warn: host.iobroker instance system.adapter.sonoff.0 terminated due to SIGKILL
      2025-01-02 17:31:01.484  - info: host.iobroker instance system.adapter.sonoff.0 terminated with code null ()
      2025-01-02 17:31:01.484  - warn: host.iobroker instance system.adapter.echarts.0 terminated due to SIGKILL
      2025-01-02 17:31:01.484  - info: host.iobroker instance system.adapter.echarts.0 terminated with code null ()
      2025-01-02 17:31:01.484  - warn: host.iobroker instance system.adapter.fullybrowser.0 terminated due to SIGKILL
      2025-01-02 17:31:01.485  - info: host.iobroker instance system.adapter.fullybrowser.0 terminated with code null ()
      2025-01-02 17:31:01.529  - info: host.iobroker instance system.adapter.socketio.0 terminated with code 11 (ADAPTER_REQUESTED_TERMINATION)
      2025-01-02 17:31:01.530  - info: host.iobroker All instances are stopped.
      2025-01-02 17:31:01.530  - warn: host.iobroker instance system.adapter.statistics.0 terminated due to SIGKILL
      2025-01-02 17:31:01.530  - info: host.iobroker instance system.adapter.statistics.0 terminated with code null ()
      2025-01-02 17:31:01.530  - info: host.iobroker All instances are stopped.
      2025-01-02 17:31:01.530  - warn: host.iobroker instance system.adapter.text2command.0 terminated due to SIGKILL
      2025-01-02 17:31:01.530  - info: host.iobroker instance system.adapter.text2command.0 terminated with code null ()
      2025-01-02 17:31:01.530  - info: host.iobroker All instances are stopped.
      2025-01-02 17:31:01.542  - warn: host.iobroker instance system.adapter.web.0 terminated due to SIGKILL
      2025-01-02 17:31:01.542  - info: host.iobroker instance system.adapter.web.0 terminated with code null ()
      2025-01-02 17:31:01.543  - info: host.iobroker All instances are stopped.
      2025-01-02 17:31:01.703  - info: host.iobroker terminated
      
      

      ============ Mark until here for C&P =============

      iob diag has finished.

      Press any key for a summary

      Copy text starting here:

      ======================= SUMMARY =======================
      			v.2024-10-19
      
      
      model name	: Intel(R) Celeron(R) J4125 CPU @ 2.00GHz
      Kernel          : x86_64
      Userland        : amd64
      Docker          : v10.0.0
      
      Installation: 		Docker
      Kernel: 		x86_64
      Userland: 		64 bit
      Timezone: 		CET +0100
      User-ID: 		0
      Display-Server: 	false
      
      
      Pending OS-Updates: 	0
      Pending iob updates: 	1
      
      Nodejs-Installation:
      /usr/bin/nodejs 	v20.18.1
      /usr/bin/node 		v20.18.1
      /usr/bin/npm 		10.8.2
      /usr/bin/npx 		10.8.2
      /usr/bin/corepack 	0.29.4
      
      Recommended versions are nodejs 20.18.1 and npm 10.8.2
      nodeJS installation is correct
      
      MEMORY: 
                     total        used        free      shared  buff/cache   available
      Mem:             20G        5.0G        2.3G        337M         14G         15G
      Swap:            14G        1.4G         13G
      Total:           35G        6.4G         15G
      
      Active iob-Instances: 	1
      Upgrade policy: none
      
      ioBroker Core: 		js-controller 		7.0.3
      			admin 			7.1.5
      
      ioBroker Status: 	iobroker is not running on this host.
      
      
      Objects type: jsonl
      States  type: jsonl
      
      Status admin and web instance:
        system.adapter.admin.0                  : admin                 : iobroker                                 -  enabled, compact disabled, port: 8081, bind: 0.0.0.0, run as: admin
        system.adapter.web.0                    : web                   : iobroker                                 -  enabled, compact disabled, port: 8082, bind: 0.0.0.0, run as: admin
      
      Objects: 		14941
      States: 		12189
      
      Size of iob-Database:
      
      32M	/opt/iobroker/iobroker-data/objects.jsonl
      6.1M	/opt/iobroker/iobroker-data/states.jsonl
      
      
      Operating System is the current Debian stable version codenamed 'bookworm'!
      
      =================== END OF SUMMARY ====================
      

      === Mark text until here for copying ===

      Wie muss die Umwandlung gesetzt werden damit undefinierte Werte nicht zu den Problemen führen?

      Die Änderungen von Datenpunkten werden ebenfalls nicht mehr im Javascript oder Blockly erkannt. Hängt das mit den alias Problemen zusammen? Was kann ich für die weitere Fehleranalyse / -behebung unternehmen?

      Ich hoffe auf eure Unterstützung.
      Heinz

      posted in Skripten / Logik
      H
      Heinz53
    • RE: [gelöst] Installationsproblem bei node-sonos-http-api

      Danke!
      Die simple-api.0 ist zugeordnet.

      Ich lerne dazu, auch Dank deines Werkzeugkastens 👏 👏 👏

      posted in ioBroker Allgemein
      H
      Heinz53
    • RE: [gelöst] Installationsproblem bei node-sonos-http-api

      Hallo Thomas, ich bin begeistert!
      Mit deiner Anleitung konnte ich die api aktivieren.

      In der Anleitung hat sich an zwei Stellen ein Schreibfehler (...apt statt ...api) eingeschlichen

      1. in Block Arbeitsverzeichnis anlegen
        sudo mv node-sonos-http-apt /usr/local/bin
      2. im Block Owner ändern
        sudo chown -R iobroker:iobroker /usr/local/bin/node-sonos-http-apt

      Dann hatte ich noch die Fehlermeldung.

      pi@iobroker:~/sonoshttp $ sudo systemctl start sonoshttp.service
      pi@iobroker:~/sonoshttp $ systemctl status sonoshttp.service
      ● sonoshttp.service - Sonos http API
           Loaded: loaded (/lib/systemd/system/sonoshttp.service; disabled; vendor preset: enabled)
           Active: failed (Result: exit-code) since Thu 2023-11-23 23:13:29 CET; 3s ago
          Process: 3655161 ExecStart=/usr/local/bin/node-sonos-http-api/sonoshttp.sh (code=exited, status=1/FAILURE)
         Main PID: 3655161 (code=exited, status=1/FAILURE)
              CPU: 3.965s
      
      Nov 23 23:13:28 iobroker sonoshttp.sh[3655369]:     playMode: { shuffle: true, repeat: 'all', crossfade: false },
      Nov 23 23:13:28 iobroker sonoshttp.sh[3655369]:     pauseOthers: false
      Nov 23 23:13:28 iobroker sonoshttp.sh[3655369]:   }
      Nov 23 23:13:28 iobroker sonoshttp.sh[3655369]: }
      Nov 23 23:13:29 iobroker sonoshttp.sh[3655369]: 2023-11-23T22:13:29.588Z ERROR Port 5005 seems to be in use already. Make sure the sonos->
      Nov 23 23:13:29 iobroker sonoshttp.sh[3655369]:     already running, or that no other server uses that port. You can specify an alternati>
      Nov 23 23:13:29 iobroker sonoshttp.sh[3655369]:     with property "port" in settings.json
      Nov 23 23:13:29 iobroker systemd[1]: sonoshttp.service: Main process exited, code=exited, status=1/FAILURE
      Nov 23 23:13:29 iobroker systemd[1]: sonoshttp.service: Failed with result 'exit-code'.
      
      

      Nach der Änderung des Ports in der settings.js auf den Port 5015 war der Aufruf erfolgreich.

      pi@iobroker:/usr/local/bin/node-sonos-http-api $ sudo nano settings.js
      pi@iobroker:/usr/local/bin/node-sonos-http-api $ sudo systemctl start sonoshttp.service
      pi@iobroker:/usr/local/bin/node-sonos-http-api $ systemctl status sonoshttp.service
      ● sonoshttp.service - Sonos http API
           Loaded: loaded (/lib/systemd/system/sonoshttp.service; disabled; vendor preset: enabled)
           Active: active (running) since Thu 2023-11-23 23:21:47 CET; 25s ago
         Main PID: 3671575 (sonoshttp.sh)
            Tasks: 24 (limit: 3933)
              CPU: 4.416s
           CGroup: /system.slice/sonoshttp.service
                   ├─3671575 /bin/bash /usr/local/bin/node-sonos-http-api/sonoshttp.sh
                   ├─3671576 npm start
                   ├─3671610 sh -c node server.js
                   └─3671611 node server.js
      
      Nov 23 23:21:49 iobroker sonoshttp.sh[3671611]:       { roomName: 'Kitchen', volume: 10 },
      Nov 23 23:21:49 iobroker sonoshttp.sh[3671611]:       { roomName: 'Office', volume: 10 },
      Nov 23 23:21:49 iobroker sonoshttp.sh[3671611]:       { roomName: 'Bedroom', volume: 10 },
      Nov 23 23:21:49 iobroker sonoshttp.sh[3671611]:       { roomName: 'TV Room', volume: 15 }
      Nov 23 23:21:49 iobroker sonoshttp.sh[3671611]:     ],
      Nov 23 23:21:49 iobroker sonoshttp.sh[3671611]:     playMode: { shuffle: true, repeat: 'all', crossfade: false },
      Nov 23 23:21:49 iobroker sonoshttp.sh[3671611]:     pauseOthers: false
      Nov 23 23:21:49 iobroker sonoshttp.sh[3671611]:   }
      Nov 23 23:21:49 iobroker sonoshttp.sh[3671611]: }
      Nov 23 23:21:51 iobroker sonoshttp.sh[3671611]: 2023-11-23T22:21:51.011Z INFO http server listening on 0.0.0.0 port 5015
      
      

      Hast du vielleicht noch einen Vorschlag wie ich feststellen kann was den Port 5005 belegt? Vielleicht habe ich mit meinen vorherigen Versuchen hier etwas durcheinandergebracht.

      Nochmals: Herzlichen Dank für deine Unterstützung!

      posted in ioBroker Allgemein
      H
      Heinz53
    Community
    Impressum | Datenschutz-Bestimmungen | Nutzungsbedingungen
    The ioBroker Community 2014-2023
    logo