Set by JS a Command parameter in HDL device

Joseanio Galdino 6 years ago in Products / HDL-BUS Pro updated by Vladimir Ovchinnikov (expert) 6 years ago 1

Hi all,

I want to change programaticaly (by JS)  the UVNumber of a command  of a HDL device  to send a UV Switch command ,  but I do not found docs  about how to do this.

Explain - I have a  HDL device named   HVAC1,   with a command named   IRChannel  and   the  UVNumber = 0

I want  to change by JS   the UVNumber   to  any number from 1 to 240  and   send  the UV Switch comand to fisical device to send a IR command  .

Something like this 

IR.GetDevice("HVAC1").SetParameter(UVNumber = 51) ;      //set UV Switch number in device 

IR.GetDevice("HDL-BUS").Set("HVAC1:IRChannel 51",255);   // Send UV Switch "n" On  to fisical device

Someone could help me ?

Thanks  in advance



Using Javascript to change the command parameters is impossible. Customize commands using the editor iRidium studio.