Wemo - scricpt compile issue

  • 211 Views
  • Last Post 10 March 2014
markvodhanel posted this 07 March 2014

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);

Order By: Standard | Newest | Votes
Ryan-Scott posted this 10 March 2014

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);

markvodhanel posted this 10 March 2014

OK, tks.

Close