Skip to content
  • Home
  • Recent
  • Tags
  • 0 Unread 0
  • Categories
  • Unreplied
  • Popular
  • 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

  • Default (No Skin)
  • No Skin
Collapse
ioBroker Logo

Community Forum

donate donate
  1. ioBroker Community Home
  2. Deutsch
  3. Error/Bug
  4. CacheSelector findet nicht alle Datenpunkte bzw. States

NEWS

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

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

  • Weihnachtsangebot 2025! 🎄
    BluefoxB
    Bluefox
    25
    1
    2.4k

CacheSelector findet nicht alle Datenpunkte bzw. States

Scheduled Pinned Locked Moved Solved Error/Bug
cacheselector javascript
21 Posts 5 Posters 1.9k Views 6 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • M Offline
    M Offline
    mark77
    wrote on last edited by
    #10

    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": {}
    }
    
    AlCalzoneA 1 Reply Last reply
    0
    • M mark77

      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": {}
      }
      
      AlCalzoneA Offline
      AlCalzoneA Offline
      AlCalzone
      Developer
      wrote on last edited by
      #11

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

      Warum `sudo` böse ist: https://forum.iobroker.net/post/17109

      1 Reply Last reply
      0
      • M Offline
        M Offline
        mark77
        wrote on last edited by
        #12

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

        arteckA 1 Reply Last reply
        0
        • M mark77

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

          arteckA Offline
          arteckA Offline
          arteck
          Developer Most Active
          wrote on last edited by
          #13

          @mark77 jo mach bitte

          zigbee hab ich, zwave auch, nuc's genauso und HA auch

          1 Reply Last reply
          0
          • AlCalzoneA Offline
            AlCalzoneA Offline
            AlCalzone
            Developer
            wrote on last edited by
            #14

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

            Warum `sudo` böse ist: https://forum.iobroker.net/post/17109

            1 Reply Last reply
            0
            • M Offline
              M Offline
              mark77
              wrote on last edited by
              #15

              @AlCalzone ja, korrekt

              1 Reply Last reply
              0
              • M Offline
                M Offline
                mark77
                wrote on last edited by
                #16

                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
                0
                • M Offline
                  M Offline
                  mark77
                  wrote on last edited by
                  #17

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

                  R 1 Reply Last reply
                  0
                  • M mark77

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

                    R Offline
                    R Offline
                    rtamas
                    wrote on last edited by rtamas
                    #18

                    @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

                    paul53P 1 Reply Last reply
                    0
                    • R 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

                      paul53P Offline
                      paul53P Offline
                      paul53
                      wrote on last edited by
                      #19

                      @rtamas sagte:

                      ScriptEngine 4.1.12

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

                      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

                      R 1 Reply Last reply
                      0
                      • M Offline
                        M Offline
                        mark77
                        wrote on last edited by
                        #20

                        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
                        0
                        • paul53P paul53

                          @rtamas sagte:

                          ScriptEngine 4.1.12

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

                          R Offline
                          R Offline
                          rtamas
                          wrote on last edited by
                          #21

                          @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
                          0
                          Reply
                          • Reply as topic
                          Log in to reply
                          • Oldest to Newest
                          • Newest to Oldest
                          • Most Votes


                          Support us

                          ioBroker
                          Community Adapters
                          Donate

                          292

                          Online

                          32.6k

                          Users

                          82.3k

                          Topics

                          1.3m

                          Posts
                          Community
                          Impressum | Datenschutz-Bestimmungen | Nutzungsbedingungen | Einwilligungseinstellungen
                          ioBroker Community 2014-2025
                          logo
                          • Login

                          • Don't have an account? Register

                          • Login or register to search.
                          • First post
                            Last post
                          0
                          • Home
                          • Recent
                          • Tags
                          • Unread 0
                          • Categories
                          • Unreplied
                          • Popular
                          • GitHub
                          • Docu
                          • Hilfe