strange error..

Post Reply
R0yk3
Posts: 46
Joined: Sunday 24 July 2016 21:51
Target OS: Raspberry Pi
Domoticz version: beta
Location: the Netherlands
Contact:

strange error..

Post by R0yk3 » Friday 10 March 2017 23:42

i get this error:
2017-03-10 22:29:00.288 Error: EventSystem: Lua script error (Blockly), Name: huiskamer_1 => [string "result = 0; weekday = os.date('*t')['wday']; ..."]:1: attempt to compare number with string
2017-03-10 22:29:00.289 Error: EventSystem: Lua script error (Blockly), Name: huiskamer_2 => [string "result = 0; weekday = os.date('*t')['wday']; ..."]:1: attempt to compare number with string
2017-03-10 22:29:00.289 Error: EventSystem: Lua script error (Blockly), Name: huiskamer_3 => [string "result = 0; weekday = os.date('*t')['wday']; ..."]:1: attempt to compare number with string
2017-03-10 22:29:00.289 Error: EventSystem: Lua script error (Blockly), Name: huiskamer_4 => [string "result = 0; weekday = os.date('*t')['wday']; ..."]:1: attempt to compare string with number
With this script:
http://prntscr.com/eifrn1
Image

Each line apart works, only together i get the error..
Raspberry PI 3, raspbian, ZwaveMe, RFLink

DutchHans
Posts: 311
Joined: Friday 03 April 2015 20:44
Target OS: Raspberry Pi
Domoticz version:
Location: Germany (near dutch border)
Contact:

Re: strange error..

Post by DutchHans » Thursday 16 March 2017 16:17

Hi maybe you should have the time between two times... If time ≥ 21.30 and time < 22.00 then...

Hope this helps.

Cheers,Hans

EDsteve
Posts: 34
Joined: Thursday 13 October 2016 11:43
Target OS: Linux
Domoticz version:
Contact:

Re: strange error..

Post by EDsteve » Friday 25 May 2018 22:11

The reason is that you can use the "Level(%)" only in a DO statement and not in a IF-statement.
If you want to change that behavior: viewtopic.php?f=62&t=23584

Cheeers
ED

Post Reply

Who is online

Users browsing this forum: Google [Bot] and 0 guests