Blockly issues for Nodon Remote script

Moderator: leecollings

Post Reply
burnwall
Posts: 7
Joined: Monday 21 November 2016 17:18
Target OS: Raspberry Pi / ODroid
Domoticz version:
Location: Stockholm, Sweden
Contact:

Blockly issues for Nodon Remote script

Post by burnwall »

Hi,

I'm trying to achieve a dimming effect when you press the minus or plus button on Nodon Soft Remote.

First I tried this type of Blockly
Capture1.JPG
Capture1.JPG (188.58 KiB) Viewed 646 times
But it fails and in the eventlog I can see:

Code: Select all

2017-01-18 13:40:51.026 Error: EventSystem: Lua script error (Blockly), Name: Färglampa Dim ner_1 => [string "result = 0; weekday = os.date('*t')['wday']; ..."]:1: attempt to compare string with number
Then I tried another setup:
Capture.JPG
Capture.JPG (183.27 KiB) Viewed 646 times
But it just dims all the way down to Off

Code: Select all

2017-01-18 13:36:01.566 Färglampa dim ner till 80%
2017-01-18 13:36:01.568 Färglampa dim ner till 60%
2017-01-18 13:36:01.569 Färglampa dim ner till 40%
2017-01-18 13:36:01.571 Färglampa dim ner till 20%
2017-01-18 13:36:01.572 Färglampa dim ner till 10%
2017-01-18 13:36:01.574 Färglampa dim ner till Off
What am I doing wrong?

Thanks in advance!
burnwall
Posts: 7
Joined: Monday 21 November 2016 17:18
Target OS: Raspberry Pi / ODroid
Domoticz version:
Location: Stockholm, Sweden
Contact:

Re: Blockly issues for Nodon Remote script

Post by burnwall »

I think I found the behavior that is causing my problems.
The Nodon Soft Remote buttons are defined as on/off lamps in domoticz and they are always on. The set Nodon-Minus to off fails.

Does anyone have any tips or is this unsolvable?
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest