Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. Error/Bug
    4. Script engine has problem with Selector

    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

    UNSOLVED Script engine has problem with Selector

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

      Dear Sirs
      I`ve found, Selector with ENUM for 0_userdata.0 is working with errors.
      Problem exists for 0_userdata.0 only.
      For example:

      on({id: 'telegram.0.communicate.request', change: "any"}, function (obj) {
      $('state(rooms=mbrwc)').each(function (id, i) {
          
          log(id,'warn');
          });
      });
      

      Result Log (* We got objects from the room "chwc" too: 4 and 5 lines):

      12/28/2019, 11:39:26 PM.140	[info ]: javascript.0 (32608) Start javascript script.js.Developing.Test3
      12/28/2019, 11:39:26 PM.143	[info ]: javascript.0 (32608) script.js.Developing.Test3: subscribe: {"pattern":{"id":"telegram.0.communicate.request","change":"any","q":0},"name":"script.js.Developing.Test3"}
      12/28/2019, 11:39:26 PM.144	[info ]: javascript.0 (32608) script.js.Developing.Test3: registered 1 subscription and 0 schedules
      12/28/2019, 11:39:32 PM.995	[warn ]: javascript.0 (32608) script.js.Developing.Test3: 0_userdata.0.CHWC_Fan_Auto_enable
      12/28/2019, 11:39:32 PM.995	[warn ]: javascript.0 (32608) script.js.Developing.Test3: 0_userdata.0.CHWC_Fan_enable
      12/28/2019, 11:39:32 PM.995	[warn ]: javascript.0 (32608) script.js.Developing.Test3: 0_userdata.0.MBRWC_Fan_Auto_enable
      12/28/2019, 11:39:32 PM.995	[warn ]: javascript.0 (32608) script.js.Developing.Test3: 0_userdata.0.MBRWC_Fan_enable
      12/28/2019, 11:39:32 PM.995	[warn ]: javascript.0 (32608) script.js.Developing.Test3: megadd.0.p18_MBRWC_FH
      12/28/2019, 11:39:32 PM.995	[warn ]: javascript.0 (32608) script.js.Developing.Test3: megadd.0.p22_MBRWC_Fan
      12/28/2019, 11:39:32 PM.996	[warn ]: javascript.0 (32608) script.js.Developing.Test3: megadd.0.p7_MBRWC_FHTemp1
      12/28/2019, 11:39:32 PM.996	[warn ]: javascript.0 (32608) script.js.Developing.Test3: megadd.0.p8_MBRWC_FHTemp2
      12/28/2019, 11:39:32 PM.996	[warn ]: javascript.0 (32608) script.js.Developing.Test3: mihome.0.devices.sensor_ht_158d0001f4fdbc.humidity
      12/28/2019, 11:39:32 PM.996	[warn ]: javascript.0 (32608) script.js.Developing.Test3: mihome.0.devices.sensor_ht_158d0001f4fdbc.temperature
      

      My ENUMs\Objects:


      Enums.jpg
      userdata.0.jpg

      /s
      Systemdata Bitte Ausfüllen
      Hardwaresystem: Khadas VIM3 Pro
      Arbeitsspeicher: 4GB
      Festplattenart: 32Gb eMMC
      Betriebssystem: Armbian
      Node-Version: 10.17.0
      Nodejs-Version: 10.17.0
      NPM-Version: 6.13.4
      Installationsart: Skript
      Image genutzt: No
      Ort/Name der Imagedatei: No
      Script Engine version: 4.3.4
      Admin version: v3.6.12
      js-controller: 2.1.1
      apollon77 1 Reply Last reply Reply Quote 0
      • apollon77
        apollon77 @Vadim last edited by

        @Vadim Please create an GitHub issue with JavaScript adapter. We need to check this.

        V 1 Reply Last reply Reply Quote 0
        • V
          Vadim @apollon77 last edited by

          @apollon77
          Done.
          GitHub

          Thank you

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

          Support us

          ioBroker
          Community Adapters
          Donate

          892
          Online

          31.8k
          Users

          80.0k
          Topics

          1.3m
          Posts

          script engine selector
          2
          3
          371
          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