0

Set HDL device parameter from iRidium Script

AlexDr 8 jaar geleden in iRidium Script bijgewerkt 8 jaar geleden 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.