Page 1 of 1

Error: EventSystem: Lua script error (Blockly)

Posted: Wednesday 26 August 2020 20:10
by Domostiaan
After my first successfull Blockly script i tried to create the following.
light goes off at 22:30. Unless the tv is on it stays on until the tv is going off.

i created a collaboration of two events to do this.

however i keep getting the following errors every minute.
searched the forum and google, but there i found that in most situations there were multiple times inside the event.
but i only have one time inside it.

2020-08-26 19:55:00.353 Error: EventSystem: Lua script error (Blockly), Name: Gang uit na AV uit_1 => [string "result = 0; weekday = os.date('*t')['wday']; ..."]:1: ')' expected near 'comparevariable'
2020-08-26 19:56:00.364 Error: EventSystem: Lua script error (Blockly), Name: Gang uit na AV uit_1 => [string "result = 0; weekday = os.date('*t')['wday']; ..."]:1: ')' expected near 'comparevariable'


How can i get it to work without errors?

Re: Error: EventSystem: Lua script error (Blockly)

Posted: Thursday 27 August 2020 0:30
by waaren
In the faulty one you now have something like
if device1 and device2 = On and time = 22:25 set device3 On
Try changing this to look like
if device1 = On and device2 = On and time = 22:25 set device3 On

Re: Error: EventSystem: Lua script error (Blockly)

Posted: Friday 28 August 2020 22:46
by Domostiaan
Thanks alot.

That was indeed the issue.