NEWS

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


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


  • @apollon77
    Done.
    GitHub

    Thank you

Suggested Topics

1.1k
Online

36.9k
Users

42.7k
Topics

591.8k
Posts