0

Set HDL device parameter from iRidium Script

AlexDr 4 years ago in iRidium Script updated 4 years ago 2

Set relay chanel HDL module state - how it realise? Give some example please.

+1

*Server side*

var device = IR.GetDevice("NAME OF HDL BUS");

var target_relay1 = "NAME OF RELAY/DIMMER:NAME OF Load1";

var target_relay2 = "NAME OF RELAY/DIMMER:NAME OF Load2";

var target_relay3 = "NAME OF RELAY/DIMMER:NAME OF Load3";


*Set on*

device.Set( target_relay1, 100);


*Set off*

device.Set( target_relay1, 0);




Thanks! It work.

Question for developers: why not use for this SetVariable()?

Tthat would be standard and intuitive.