Hi,
I get the following error in log when making states in this blocky valid for sending a fire alarm message:
2017-04-18 22:58:34.985 Error: EventSystem: Lua script error (Blockly), Name: Brandlarm_2 => [string "result = 0; weekday = os.date('*t')['wday']; ..."]:1: ')' expected near 'comparevariable'
What am I doing wrong?
What is wrong!? :)
Moderator: leecollings
-
Ricard1
- Posts: 62
- Joined: Saturday 07 November 2015 12:30
- Target OS: Windows
- Domoticz version: Beta
- Location: Sweden
- Contact:
What is wrong!? :)
- Attachments
-
- blocky.JPG (79.8 KiB) Viewed 872 times
Last edited by Ricard1 on Tuesday 18 April 2017 23:44, edited 1 time in total.
- StanHD
- Posts: 347
- Joined: Friday 12 July 2013 16:09
- Target OS: Windows
- Domoticz version:
- Location: East Sussex, UK
- Contact:
Re: What is wrong!? :)
You have not constructed the "If" blocks correctly.
It should be (X=On) Or (Y= On) Or (Z=On)
Not:- (X Or Y Or Z) = On
Hope that helps
It should be (X=On) Or (Y= On) Or (Z=On)
Not:- (X Or Y Or Z) = On
Hope that helps

Domoticz Main - Intel nuc, Windows, RFXTRX433E. Lan Relay Boards, Aeon Z-Stick Gen 5, Evohome HGI80, Milight WiFi, MySensors Ethernet Gateway, Harmony Hub
Python:- Broadlink RM2, Sonos
HA-Bridge - Amazon Echo / Alexa
Python:- Broadlink RM2, Sonos
HA-Bridge - Amazon Echo / Alexa
-
Ricard1
- Posts: 62
- Joined: Saturday 07 November 2015 12:30
- Target OS: Windows
- Domoticz version: Beta
- Location: Sweden
- Contact:
Re: What is wrong!? :)
Yes thank you! 
Who is online
Users browsing this forum: No registered users and 1 guest