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. Skripten / Logik
  4. Alias Umwandlung bei JSON mit "null" bereitet Probleme

NEWS

  • Neuer Blogbeitrag: Monatsrückblick - Dezember 2025 🎄
    BluefoxB
    Bluefox
    9
    1
    96

  • Weihnachtsangebot 2025! 🎄
    BluefoxB
    Bluefox
    24
    1
    1.4k

  • UPDATE 31.10.: Amazon Alexa - ioBroker Skill läuft aus ?
    apollon77A
    apollon77
    48
    3
    9.3k

Alias Umwandlung bei JSON mit "null" bereitet Probleme

Geplant Angeheftet Gesperrt Verschoben Skripten / Logik
javascriptblockly
19 Beiträge 5 Kommentatoren 1.5k Aufrufe 3 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.
  • H Offline
    H Offline
    Heinz53
    schrieb am zuletzt editiert von
    #1

    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

    paul53P 1 Antwort Letzte Antwort
    0
    • H Heinz53

      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

      paul53P Offline
      paul53P Offline
      paul53
      schrieb am zuletzt editiert von paul53
      #2

      @heinz53 sagte: Was kann ich für die weitere Fehleranalyse / -behebung unternehmen?

            "read":  "val ? JSON.parse(val).action : 'no Action'"
      

      Bitte verzichtet auf Chat-Nachrichten, denn die Handhabung ist grauenhaft !
      Produktiv: RPi 2 mit S.USV, HM-MOD-RPI und SLC-USB-Stick mit root fs

      1 Antwort Letzte Antwort
      0
      • H Offline
        H Offline
        Heinz53
        schrieb am zuletzt editiert von
        #3

        @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

        FredFF paul53P 2 Antworten Letzte Antwort
        0
        • H Heinz53

          @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

          FredFF Online
          FredFF Online
          FredF
          Most Active Forum Testing
          schrieb am zuletzt editiert von
          #4

          @heinz53
          Ich antworte mal:

          "read": "val == 'on' ? true : false"
          
          1 Antwort Letzte Antwort
          0
          • H Heinz53

            @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

            paul53P Offline
            paul53P Offline
            paul53
            schrieb am zuletzt editiert von
            #5

            @heinz53 sagte: folgende Meldung

            Wenn auch geschrieben werden soll, muss man beim Schreiben konvertieren, denn ich nehme an, dass "Strom28.set" ebenfalls "on"/"off" erwartet?

                  "read": "val == 'on'",
                  "write": "val ? 'on' : 'off'" 
            

            Bitte verzichtet auf Chat-Nachrichten, denn die Handhabung ist grauenhaft !
            Produktiv: RPi 2 mit S.USV, HM-MOD-RPI und SLC-USB-Stick mit root fs

            1 Antwort Letzte Antwort
            1
            • H Offline
              H Offline
              Heinz53
              schrieb am zuletzt editiert von
              #6

              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?

              1 Antwort Letzte Antwort
              0
              • H Offline
                H Offline
                Heinz53
                schrieb am zuletzt editiert von
                #7

                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?

                paul53P 1 Antwort Letzte Antwort
                0
                • H Heinz53

                  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?

                  paul53P Offline
                  paul53P Offline
                  paul53
                  schrieb am zuletzt editiert von paul53
                  #8

                  @heinz53 sagte: Wie geht es richtig?

                  Es fehlenden die runden Klammern.

                        "read": "JSON.parse(val).state == 'on'",
                        "write": "JSON.stringify({state: val ? 'on' : 'off'})"
                  

                  Die Rolle sollte "switch" sein. Außerdem bietet sich an, einen eindeutigen, verständlichen Namen zu vergeben.

                  Bitte verzichtet auf Chat-Nachrichten, denn die Handhabung ist grauenhaft !
                  Produktiv: RPi 2 mit S.USV, HM-MOD-RPI und SLC-USB-Stick mit root fs

                  1 Antwort Letzte Antwort
                  0
                  • H Offline
                    H Offline
                    Heinz53
                    schrieb am zuletzt editiert von
                    #9

                    @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?

                    paul53P 1 Antwort Letzte Antwort
                    0
                    • H Heinz53

                      @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?

                      paul53P Offline
                      paul53P Offline
                      paul53
                      schrieb am zuletzt editiert von paul53
                      #10

                      @heinz53 sagte: Was kann ich machen?

                      Ändere "def":

                          "def": false,
                      

                      @heinz53 sagte in Alias Umwandlung bei JSON mit "null" bereitet Probleme:

                      Das Ausschalten über den alias ist nicht möglich.

                      ?? Wie sieht der Wert von "mqtt.0.zigbee2mqtt.Strom28" bei ausgeschalteter Steckdose aus?

                      Bitte verzichtet auf Chat-Nachrichten, denn die Handhabung ist grauenhaft !
                      Produktiv: RPi 2 mit S.USV, HM-MOD-RPI und SLC-USB-Stick mit root fs

                      1 Antwort Letzte Antwort
                      0
                      • H Offline
                        H Offline
                        Heinz53
                        schrieb am zuletzt editiert von
                        #11

                        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'})"
                            }
                          },
                        
                        1 Antwort Letzte Antwort
                        0
                        • H Offline
                          H Offline
                          Heinz53
                          schrieb am zuletzt editiert von
                          #12

                          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
                          }

                          paul53P 1 Antwort Letzte Antwort
                          0
                          • H Heinz53

                            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
                            }

                            paul53P Offline
                            paul53P Offline
                            paul53
                            schrieb am zuletzt editiert von
                            #13

                            @heinz53 sagte: "state": "OFF",

                            ... groß geschrieben! Auch "ON"?

                            Bitte verzichtet auf Chat-Nachrichten, denn die Handhabung ist grauenhaft !
                            Produktiv: RPi 2 mit S.USV, HM-MOD-RPI und SLC-USB-Stick mit root fs

                            1 Antwort Letzte Antwort
                            0
                            • H Offline
                              H Offline
                              Heinz53
                              schrieb am zuletzt editiert von
                              #14

                              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!

                              C 1 Antwort Letzte Antwort
                              0
                              • H Heinz53

                                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!

                                C Offline
                                C Offline
                                c1olli
                                schrieb am zuletzt editiert von
                                #15

                                Ich habe ein wenigstens der Überschrift nach ähnliches Problem.

                                Ich bekomme die Daten aus der Victron VRM als json ins MQTT geliefert.
                                Diese wandele ich mit:

                                Math.round(JSON.parse(val).value * 10) / 10
                                

                                im Alias zu Werten um und das funktioniert auch recht gut.

                                Aber wenn die PV nichts mehr einspeist meldet der Datenpunkt :

                                {"value":null}
                                

                                Damit kommt dann der alias nicht klar und meldet folgenden Fehler:

                                Invalid read function for "alias.0.Vic-Erz": "Math.round(JSON.parse(val).value * 10) / 10" => Cannot read properties of null (reading 'value')
                                

                                Weil Null kein Wert ist.

                                So sieht der Datenpunkt dann aus:

                                {
                                  "common": {
                                    "name": "PV-Pow-Ges",
                                    "desc": "Manuell erzeugt",
                                    "role": "value",
                                    "type": "number",
                                    "read": true,
                                    "write": true,
                                    "def": 0,
                                    "alias": {
                                      "read": "Math.round(JSON.parse(val).value * 100) / 100",
                                      "id": "mqtt.0.N.48e7da85dd79.pvinverter.22.Ac.Power"
                                    },
                                    "unit": "W"
                                  },
                                  "type": "state",
                                  "native": {},
                                  "_id": "alias.0.PV-Pow-Ges",
                                  "acl": {
                                    "object": 1636,
                                    "state": 1636,
                                    "owner": "system.user.admin",
                                    "ownerGroup": "system.group.administrator"
                                  },
                                  "from": "system.adapter.admin.0",
                                  "user": "system.user.admin",
                                  "ts": 1736334728344
                                }
                                

                                Wie kann ich nun die Fehlermeldung verhindern?

                                Gruß
                                Olli

                                paul53P 1 Antwort Letzte Antwort
                                0
                                • mickymM Offline
                                  mickymM Offline
                                  mickym
                                  Most Active
                                  schrieb am zuletzt editiert von
                                  #16

                                  @c1olli sagte in Alias Umwandlung bei JSON mit "null" bereitet Probleme:

                                  Math.round(JSON.parse(val).value * 10) / 10

                                  Probier halt das Gleiche was vorgeschlagen wurde:

                                  val ? Math.round(JSON.parse(val).value * 10) / 10 : val
                                  

                                  Jeder Flow bzw. jedes Script, das ich hier poste implementiert jeder auf eigene Gefahr. Flows und Scripts können Fehler aufweisen und weder der Seitenbetreiber noch ich persönlich können hierfür haftbar gemacht werden. Das gleiche gilt für Empfehlungen aller Art.

                                  1 Antwort Letzte Antwort
                                  0
                                  • C c1olli

                                    Ich habe ein wenigstens der Überschrift nach ähnliches Problem.

                                    Ich bekomme die Daten aus der Victron VRM als json ins MQTT geliefert.
                                    Diese wandele ich mit:

                                    Math.round(JSON.parse(val).value * 10) / 10
                                    

                                    im Alias zu Werten um und das funktioniert auch recht gut.

                                    Aber wenn die PV nichts mehr einspeist meldet der Datenpunkt :

                                    {"value":null}
                                    

                                    Damit kommt dann der alias nicht klar und meldet folgenden Fehler:

                                    Invalid read function for "alias.0.Vic-Erz": "Math.round(JSON.parse(val).value * 10) / 10" => Cannot read properties of null (reading 'value')
                                    

                                    Weil Null kein Wert ist.

                                    So sieht der Datenpunkt dann aus:

                                    {
                                      "common": {
                                        "name": "PV-Pow-Ges",
                                        "desc": "Manuell erzeugt",
                                        "role": "value",
                                        "type": "number",
                                        "read": true,
                                        "write": true,
                                        "def": 0,
                                        "alias": {
                                          "read": "Math.round(JSON.parse(val).value * 100) / 100",
                                          "id": "mqtt.0.N.48e7da85dd79.pvinverter.22.Ac.Power"
                                        },
                                        "unit": "W"
                                      },
                                      "type": "state",
                                      "native": {},
                                      "_id": "alias.0.PV-Pow-Ges",
                                      "acl": {
                                        "object": 1636,
                                        "state": 1636,
                                        "owner": "system.user.admin",
                                        "ownerGroup": "system.group.administrator"
                                      },
                                      "from": "system.adapter.admin.0",
                                      "user": "system.user.admin",
                                      "ts": 1736334728344
                                    }
                                    

                                    Wie kann ich nun die Fehlermeldung verhindern?

                                    paul53P Offline
                                    paul53P Offline
                                    paul53
                                    schrieb am zuletzt editiert von paul53
                                    #17

                                    @c1olli sagte: {"value":null}

                                    "JSON.parse(val).value ? Math.round(JSON.parse(val).value * 100) / 100 : 0",
                                    

                                    Das JSON wird noch so erzeugt? Es ist nicht der gesamte Wert null?

                                    Bitte verzichtet auf Chat-Nachrichten, denn die Handhabung ist grauenhaft !
                                    Produktiv: RPi 2 mit S.USV, HM-MOD-RPI und SLC-USB-Stick mit root fs

                                    C 2 Antworten Letzte Antwort
                                    0
                                    • paul53P paul53

                                      @c1olli sagte: {"value":null}

                                      "JSON.parse(val).value ? Math.round(JSON.parse(val).value * 100) / 100 : 0",
                                      

                                      Das JSON wird noch so erzeugt? Es ist nicht der gesamte Wert null?

                                      C Offline
                                      C Offline
                                      c1olli
                                      schrieb am zuletzt editiert von c1olli
                                      #18

                                      @paul53
                                      ich habe die Variante von @mickym und auch die von Dir probiert (2 verschiedene Werte) und beides funktioniert erst einmal.
                                      Ob das mit Null funktioniert weiß ich nicht, da die PV erst heute abend auf "null" stellt.

                                      Ich versuche mal beides zu simulieren.

                                      Edit:
                                      In der Simulation hat beides funktioniert. Ich warte also mal ab was passiert.

                                      Gruß
                                      Olli

                                      1 Antwort Letzte Antwort
                                      0
                                      • paul53P paul53

                                        @c1olli sagte: {"value":null}

                                        "JSON.parse(val).value ? Math.round(JSON.parse(val).value * 100) / 100 : 0",
                                        

                                        Das JSON wird noch so erzeugt? Es ist nicht der gesamte Wert null?

                                        C Offline
                                        C Offline
                                        c1olli
                                        schrieb am zuletzt editiert von
                                        #19

                                        @paul53
                                        @mickym

                                        Ich hab die Varianten jetzt laufen lassen und die Variante von @mickym funktioniert.
                                        Bei der anderen Variante kommt dann wieder "null" und die Fehlermeldung,

                                        Danke für die Hilfe.

                                        Gruß
                                        Olli

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


                                        Support us

                                        ioBroker
                                        Community Adapters
                                        Donate

                                        841

                                        Online

                                        32.5k

                                        Benutzer

                                        81.7k

                                        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