Page 1 of 1

Blockly issues for Nodon Remote script

Posted: Wednesday 18 January 2017 15:28
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 649 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 649 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!

Re: Blockly issues for Nodon Remote script

Posted: Friday 27 January 2017 12:31
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?