using System;
using System.Collections.Generic;
using System.Text;
using MLS.ZWave.Service.Rules;
using MLS.ZWave.BusinessObjects;
public class TestClass : ScriptBase, ScriptInterface
{
public void runScript()
{
try
{
var light = getNodeByShortId(8);
dm.setPower(light.deviceId, true);
}
catch (Exception ex)
{
writeFileLog("Exception caught...", ex);
}
}
}
// 3/7/2014 8:11:20 AM: Script failed to compile with error: No overload for method 'setPower' takes 2
// on line 13.
We've changed the setPower method in the latest RC - here's how your command should now look:
dm.setPower(light.deviceId, true, null);