Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. Skripten / Logik
    4. Blockly
    5. obj.common.custom has an invalid type!

    NEWS

    • Wir empfehlen: Node.js 22.x

    • Neuer Blog: Fotos und Eindrücke aus Solingen

    • ioBroker goes Matter ... Matter Adapter in Stable

    obj.common.custom has an invalid type!

    This topic has been deleted. Only users with topic management privileges can see it.
    • F
      FuXXz2 last edited by

      Hallo zusammen,

      ich habe einen Alias angelegt und bei einigen erscheint im Log eine Meldung vom Javascript Adapter

      Object alias.0.Bewegungsmelder.KZ_Schlaf_Bewegung is invalid: obj.common.custom has an invalid type! Expected "object", received "object"
      

      Ok, erwartet wurde "objekt, erhalten hat er "objekt" ein Dilemma 🙂
      Wie kann ich das korrigieren?

      Cinimod 1 Reply Last reply Reply Quote 0
      • Cinimod
        Cinimod Most Active @FuXXz2 last edited by Cinimod

        @fuxxz2

        Es stimmt etwas mit dem "type" des Datenpunktes nicht.

        Zeig doch mal die Objektdaten.

        F 1 Reply Last reply Reply Quote 0
        • F
          FuXXz2 @Cinimod last edited by FuXXz2

          hier stand was falsches

          BananaJoe 1 Reply Last reply Reply Quote 0
          • BananaJoe
            BananaJoe Most Active @FuXXz2 last edited by BananaJoe

            @fuxxz2 sagte in obj.common.custom has an invalid type!:

            @cinimod Hi, ich weiß ja gar nicht welches Gerät das jeweils sein soll. Da steht z.B. nur
            State "smartcontrol.0.targetDevices.Schalter_enum-19" has no existing object, this might lead to an error in future versions

            na der Datenpunkt smartcontrol.0.targetDevices.Schalter_enum-19
            Bei dem mal den Stift am Ende anklicken und die Seite mit den Objektdaten wählen - und den Inhalt hier - in Code-Tags - posten

            Nachtrag: Mir fällt gerade auf das dies ja nun ein andere Datenpunkt als aus deinem ersten Post ist ... Was denn nun? ist ja auch ein anderer Fehler

            F 1 Reply Last reply Reply Quote 0
            • F
              FuXXz2 @BananaJoe last edited by

              @BananaJoe
              Ja Sorry, das gehörte eigentlich in einen anderen Beitrag, ist irgendwie dazwischen gesprungen 🙂
              Hier die Objektdaten vom alias.0.Bewegungsmelder.KZ_Schlaf_Bewegung


              {
              "type": "state",
              "common": {
              "name": "Bewegungsmelder Kinderzimmer-Schlafzimmer",
              "type": "boolean",
              "read": true,
              "write": false,
              "role": "sensor.motion",
              "alias": {
              "id": "zigbee.0.00158d000549d1d1.occupancy"
              },
              "desc": "per Script erstellt",
              "states": {
              "false": "inaktiv",
              "true": "aktiv"
              },
              "custom": []
              },
              "native": {},
              "from": "system.adapter.javascript.0",
              "user": "system.user.admin",
              "ts": 1666344257978,
              "_id": "alias.0.Bewegungsmelder.KZ_Schlaf_Bewegung",
              "acl": {
              "object": 1636,
              "state": 1636,
              "owner": "system.user.admin",
              "ownerGroup": "system.group.administrator"
              }
              }

              Cinimod paul53 2 Replies Last reply Reply Quote 0
              • Cinimod
                Cinimod Most Active @FuXXz2 last edited by

                @fuxxz2

                im unteren bereich ab "nativ" sollte eigentlich noch mal "type": "state" kommen.

                Wie oder wo mit erstellst du die Alias ?

                F 1 Reply Last reply Reply Quote 0
                • paul53
                  paul53 @FuXXz2 last edited by

                  @fuxxz2 sagte: "custom": []

                  Ändere es in

                       "custom": {}
                  

                  oder lösche es (und das Komma davor).

                  1 Reply Last reply Reply Quote 0
                  • F
                    FuXXz2 @Cinimod last edited by

                    @cinimod
                    mit dem Alias Script
                    https://github.com/xCruziX/ioBroker-Creating-Alias

                    Armilar 1 Reply Last reply Reply Quote 0
                    • Armilar
                      Armilar Most Active Forum Testing @FuXXz2 last edited by Armilar

                      @fuxxz2
                      nimm mal den Geräte Manager --> Adapter Geräte verwalten.
                      Dann legst du einen Alias an vom Gerätetyp Licht und trägst die Datenpunkte ein.
                      speichern fertig und wird funktionieren.

                      Ist zwar ne Beschreibung für das NSPanel - aber bestens erklärt, wie der Alias Licht für deine Zwecke angelegt wird.
                      https://github.com/joBr99/nspanel-lovelace-ui/wiki/ioBroker-ALIAS-Definitionen#licht-channel-light

                      EDIT: Alternativ den Gerätetypen "Bewegung" verwenden:

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

                      Support us

                      ioBroker
                      Community Adapters
                      Donate

                      554
                      Online

                      32.0k
                      Users

                      80.5k
                      Topics

                      1.3m
                      Posts

                      5
                      9
                      365
                      Loading More Posts
                      • Oldest to Newest
                      • Newest to Oldest
                      • Most Votes
                      Reply
                      • Reply as topic
                      Log in to reply
                      Community
                      Impressum | Datenschutz-Bestimmungen | Nutzungsbedingungen
                      The ioBroker Community 2014-2023
                      logo