Set HDL device parameter from iRidium Script

AlexDr 8 лет назад в iRidium Script обновлен 8 лет назад 2

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


*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.

Сервис поддержки клиентов работает на платформе UserEcho