NEWS

Script engine has problem with Selector



  • 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:

    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


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



  • @apollon77
    Done.
    GitHub

    Thank you


Log in to reply
 

Suggested Topics

1.7k
Online

32.2k
Users

38.9k
Topics

526.7k
Posts