Help me with my script error

  • 422 Views
  • Last Post 04 February 2015
AlexB posted this 30 January 2015

So I created a script based on the DimToOff, to do exactly the opposite, dim from off to on
http://pastebin.com/59jT7xQ2

I tried to create a scene:
- post-script: my script (DimToOn)
- device: dimmer
- trigger: time triger, every day at 7:45 am
- condition: weekdays

Now it crashes with

30.01.2015 19:04:29: SceneTrigger TEst: Unrecognized value '' entered for Interval.
30.01.2015 19:04:51: SceneTrigger TEst: Unrecognized value '' entered for Interval.
30.01.2015 19:06:41: Script failed to compile with error: The best overloaded method match for 'MLS.ZWave.Service.Rules.ScriptBase.setDeviceLevel(System.Guid, byte)' has some invalid arguments on line 61.
30.01.2015 19:06:41: Script failed to compile with error: Argument 2: cannot convert from 'double' to 'byte' on line 61.

Order By: Standard | Newest | Votes
AlexB posted this 31 January 2015

So, nobody?

AlexB posted this 02 February 2015

Well, up...

Ryan-Scott posted this 03 February 2015


30.01.2015 19:06:41: Script failed to compile with error: The best overloaded method match for 'MLS.ZWave.Service.Rules.ScriptBase.setDeviceLevel(System.Guid, byte)' has some invalid arguments on line 61.
30.01.2015 19:06:41: Script failed to compile with error: Argument 2: cannot convert from 'double' to 'byte' on line 61.


You might try this:

Based on the error, you might try this, though the error the compiler is giving might be unrelated:

setDeviceLevel(d.deviceId, (byte)d.level);

You should also be able to accomplish what you need using the following in a scene: "Advanced Scene Options"

AlexB posted this 04 February 2015

Yep, it worked with the Advanced Scene Options. Thanks!

Close