15-.bsh
Code: Select all
if (executedByEvent()) {
device = getCmdDeviceId();
cmd = getCmd();
level = getCmdLevel();
echo(device);
echo(cmd);
echo(level);
if (device.equals("15") && level.equals("30%")) {
deviceLevel(device, "20%");
}
}