Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. Error/Bug
    4. CacheSelector findet nicht alle Datenpunkte bzw. States

    NEWS

    • Neuer Blog: Fotos und Eindrücke aus Solingen

    • ioBroker@Smart Living Forum Solingen, 14.06. - Agenda added

    • ioBroker goes Matter ... Matter Adapter in Stable

    SOLVED CacheSelector findet nicht alle Datenpunkte bzw. States

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

      Geht:

      {
        "_id": "sonoff.0.Sonoff-163.alive",
        "common": {
          "name": "Sonoff-163 alive",
          "type": "boolean",
          "role": "indicator.connected",
          "read": true,
          "write": true
        },
        "type": "state",
        "from": "system.adapter.sonoff.0",
        "user": "system.user.admin",
        "ts": 1539845127231,
        "acl": {
          "object": 1636,
          "owner": "system.user.admin",
          "ownerGroup": "system.group.administrator",
          "state": 1636
        },
        "native": {}
      }
      

      Geht nicht:

      {
        "_id": "sonoff.0.Sonoff-167.alive",
        "common": {
          "type": "boolean",
          "role": "indicator.connected",
          "read": true,
          "write": false,
          "name": "Sonoff-167 alive"
        },
        "type": "state",
        "from": "system.adapter.sonoff.0",
        "user": "system.user.admin",
        "ts": 1539845147409,
        "acl": {
          "object": 1636,
          "state": 1636,
          "owner": "system.user.admin",
          "ownerGroup": "system.group.administrator"
        },
        "native": {}
      }
      
      AlCalzone 1 Reply Last reply Reply Quote 0
      • AlCalzone
        AlCalzone Developer @mark77 last edited by

        @mark77 Danke. Das find ich schon sehr seltsam. Nur um sicher zu gehen, dass das kein bekannter Bug ist:
        Die Datenpunkte existieren schon vor dem Start des Skript-Adapters, und werden nicht erst während der Laufzeit durch einen anderen Adapter angelegt - richtig?

        1 Reply Last reply Reply Quote 0
        • M
          mark77 last edited by

          @AlCalzone Ja, ist richtig, alles wurde vom Adapter selber angelegt.

          Hilft es, wenn ich das gleich mit dem ZigBee Adapter mache?
          Da gibt es die gleichen Probleme.

          arteck 1 Reply Last reply Reply Quote 0
          • arteck
            arteck Developer Most Active @mark77 last edited by

            @mark77 jo mach bitte

            1 Reply Last reply Reply Quote 0
            • AlCalzone
              AlCalzone Developer last edited by

              @AlCalzone sagte in CacheSelector findet nicht alle Datenpunkte bzw. States:

              nicht erst während der Laufzeit

              @mark77 Das ist der entscheidende Punkt. Der Sonoff-Adapter lief, die Objekte waren da, und dann hast du den Skript-Adapter gestartet?

              1 Reply Last reply Reply Quote 0
              • M
                mark77 last edited by

                @AlCalzone ja, korrekt

                1 Reply Last reply Reply Quote 0
                • M
                  mark77 last edited by

                  Der geht:

                  {
                    "from": "system.adapter.zigbee.0",
                    "ts": 1557846957200,
                    "common": {
                      "name": "Battery percent",
                      "type": "number",
                      "unit": "%",
                      "role": "battery.percent",
                      "min": 0,
                      "max": 100,
                      "read": true,
                      "write": false,
                      "icon": "img/battery_p.png",
                      "custom": {
                        "history.0": {
                          "enabled": true,
                          "changesOnly": true,
                          "debounce": "10000",
                          "maxLength": "960",
                          "retention": "63072000",
                          "changesRelogInterval": 0,
                          "changesMinDelta": 0,
                          "aliasId": ""
                        },
                        "sql.1": {
                          "enabled": true,
                          "changesOnly": true,
                          "debounce": "10000",
                          "retention": "63072000",
                          "changesRelogInterval": 0,
                          "changesMinDelta": 0,
                          "storageType": "",
                          "aliasId": ""
                        }
                      }
                    },
                    "native": {},
                    "acl": {
                      "object": 1636,
                      "owner": "system.user.admin",
                      "ownerGroup": "system.group.administrator",
                      "state": 1636
                    },
                    "_id": "zigbee.0.HierStehtDieId.battery",
                    "type": "state",
                    "user": "system.user.admin"
                  }
                  

                  Der geht nicht:

                  {
                    "type": "state",
                    "common": {
                      "name": "Battery percent",
                      "type": "number",
                      "unit": "%",
                      "read": true,
                      "write": false,
                      "role": "battery.percent",
                      "min": 0,
                      "max": 100,
                      "icon": "img/battery_p.png",
                      "custom": {
                        "history.0": {
                          "enabled": true,
                          "changesOnly": true,
                          "debounce": "10000",
                          "maxLength": "960",
                          "retention": "31536000",
                          "changesRelogInterval": 0,
                          "changesMinDelta": 0,
                          "aliasId": ""
                        }
                      }
                    },
                    "from": "system.adapter.zigbee.0",
                    "ts": 1557846957223,
                    "_id": "zigbee.0.HierStehtDieId.battery",
                    "acl": {
                      "object": 1636,
                      "state": 1636,
                      "owner": "system.user.admin",
                      "ownerGroup": "system.group.administrator"
                    },
                    "user": "system.user.admin",
                    "native": {}
                  }
                  
                  1 Reply Last reply Reply Quote 0
                  • M
                    mark77 last edited by

                    Gibt es eigentlich einen Grund, dass sich der Aufbau der Objekte, bei eigentlich gleichen Typen, unterscheidet?

                    R 1 Reply Last reply Reply Quote 0
                    • R
                      rtamas @mark77 last edited by rtamas

                      @mark77 Hallo! Ich habe die selben Probleme mit Sonoff. Hast du es irgendwie gelöst?
                      ScriptEngine 4.1.12
                      sonoff 2.2.2
                      js-controller 1.5.14

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

                        @rtamas sagte:

                        ScriptEngine 4.1.12

                        Hast Du es mal mit einer neueren Version (4.3.x) versucht ?

                        R 1 Reply Last reply Reply Quote 0
                        • M
                          mark77 last edited by

                          Moin,

                          habe gerade die Tage wieder damit experimentiert.

                          Irgendwo hatte ich auch noch Probleme damit, weiß nur leider nicht mehr genau, welche Datenpunkte es genau waren.
                          Sie ließen sich nur dann auslesen, wenn das Logging über History/SQL aktiviert war.

                          Habe vor 5 Minuten mal die Versionen 4.1.14 und 4.3.1 probiert und da, wo ich es benötige, nichts auffälliges festgestellt.

                          Für mich scheint es zu laufen.

                          Am einfachsten ließ sich das testen, mit einem Slave (z.B. RPi), auf dem eine andere Version installiert ist, dann kann man immer zwischen den Instanzen wechseln.

                          Gruß,
                          Mark

                          1 Reply Last reply Reply Quote 0
                          • R
                            rtamas @paul53 last edited by

                            @paul53 Hab ich noch nicht, danke Dir fürs Tipp!
                            @mark77 Danke für die weitere Info!

                            Es war mein Fehler mit dem Code, läuft schon problemlos. 🙂

                            Gruß,
                            Tamas

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

                            Support us

                            ioBroker
                            Community Adapters
                            Donate

                            895
                            Online

                            31.9k
                            Users

                            80.1k
                            Topics

                            1.3m
                            Posts

                            cacheselector javascript
                            5
                            21
                            1284
                            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