strange error..

Moderator: leecollings

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

strange error..

Post by R0yk3 »

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: 229
Joined: Friday 03 April 2015 20:44
Target OS: Raspberry Pi / ODroid
Domoticz version:
Location: Germany (near dutch border)
Contact:

Re: strange error..

Post by DutchHans »

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: 26
Joined: Thursday 13 October 2016 11:43
Target OS: Linux
Domoticz version:
Contact:

Re: strange error..

Post by EDsteve »

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
ggorzki
Posts: 2
Joined: Saturday 23 May 2020 0:04
Target OS: Raspberry Pi / ODroid
Domoticz version: 2020.2
Contact:

Re: strange error..

Post by ggorzki »

EDsteve wrote: Friday 25 May 2018 22:11 If you want to change that behavior: https://www.domoticz.com/forum/viewtopi ... 62&t=23584
I also want to change that behavior, but the linked topic seems to be missing. What was there? Any workaround? Or just a request for a change? ;)
EDsteve
Posts: 26
Joined: Thursday 13 October 2016 11:43
Target OS: Linux
Domoticz version:
Contact:

Re: strange error..

Post by EDsteve »

Hi,

the referred link did not point to a solution. It pointed to a thread where i tried to collect donations from the community to pay someone who can fix all the Blocky issues. Unfortunately the the admins didn't like that idea. So here we are still with the same unsolved Blocky problems.

So there is still no solution (with Blocky) for your problem
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests