Maybe the easiest question (if you know the solution.
Moderator: leecollings
-
- Posts: 10
- Joined: Monday 19 February 2018 18:15
- Target OS: Windows
- Domoticz version:
- Contact:
Maybe the easiest question (if you know the solution.
Hi everyone, my first post with a problem that I tried to solve (useless) for several days.
this is the very simple blockly condition:
nothing happens if I put ON topolino and minnie. If I semplify the block with only one condition (only topolino or only minnie), tip change state correctly .
Log is:
2018-02-19 18:06:58.717 (Utenze attive) Light/Switch (minnie)
2018-02-19 18:07:00.839 User: Admin initiated a switch command (37/topolino/On)
2018-02-19 18:07:00.848 Error: EventSystem: Lua script error (Blockly), Name: disney_1 => [string "result = 0; weekday = os.date('*t')['wday']; ..."]:1: 'then' expected near 'comparevariable'
Can somebody help me, please?
thanks in advance
this is the very simple blockly condition:
nothing happens if I put ON topolino and minnie. If I semplify the block with only one condition (only topolino or only minnie), tip change state correctly .
Log is:
2018-02-19 18:06:58.717 (Utenze attive) Light/Switch (minnie)
2018-02-19 18:07:00.839 User: Admin initiated a switch command (37/topolino/On)
2018-02-19 18:07:00.848 Error: EventSystem: Lua script error (Blockly), Name: disney_1 => [string "result = 0; weekday = os.date('*t')['wday']; ..."]:1: 'then' expected near 'comparevariable'
Can somebody help me, please?
thanks in advance
- Attachments
-
- domo.JPG (90.34 KiB) Viewed 1667 times
- Domosapiens
- Posts: 232
- Joined: Wednesday 20 August 2014 12:08
- Target OS: Windows
- Domoticz version: V3.5981
- Location: NL
- Contact:
Re: Maybe the easiest question (if you know the solution.
First pick the "and" block.
Put a condition to the left and one to the right.
Left: topolino=On
Right:minnie=On
Put a condition to the left and one to the right.
Left: topolino=On
Right:minnie=On
Win Vista&7; 1#Aeon Z-Stick S2; 1#Aeotec Z-Sick Gen5, 6#Fib.FGBS001; 24#DS18B20; 8#Everspr.AN158-2; 3#Philio PAN04; 1#Philio PAN06, 1#YouLess El; 1#Fib.FGWPE; 1#ZME_RC2; 2#FAK_ZWS230, 2#Quib.ZMNHCDx, 1#Quib.ZMNHDD1, 7#EM6555
-
- Posts: 10
- Joined: Monday 19 February 2018 18:15
- Target OS: Windows
- Domoticz version:
- Contact:
Re: Maybe the easiest question (if you know the solution.
Thanks for your reply. Tried but no works.
-
- Posts: 10
- Joined: Monday 19 February 2018 18:15
- Target OS: Windows
- Domoticz version:
- Contact:
Re: Maybe the easiest question (if you know the solution.
I'll became mad...
1) two fresh domoticz in two different raspi;
2) two different domoticz version:Version: 3.8924 Build Hash: 4b5824be and Version: 3.8153 Build Hash: 494fff7;
3) tried different symbols between operator AND : equal, unequal, more, less...
4) with only one condition (if a==x then...) works
5) what means exactly this error message:"2018-02-20 09:46:12.537 Error: EventSystem: Lua script error (Blockly), Name: disney_1 => [string "result =
0; weekday = os.date('*t')['wday']; ..."]:1: 'then' expected near 'comparevariable'"?
Any idea about?
1) two fresh domoticz in two different raspi;
2) two different domoticz version:Version: 3.8924 Build Hash: 4b5824be and Version: 3.8153 Build Hash: 494fff7;
3) tried different symbols between operator AND : equal, unequal, more, less...
4) with only one condition (if a==x then...) works
5) what means exactly this error message:"2018-02-20 09:46:12.537 Error: EventSystem: Lua script error (Blockly), Name: disney_1 => [string "result =
0; weekday = os.date('*t')['wday']; ..."]:1: 'then' expected near 'comparevariable'"?
Any idea about?
- Domosapiens
- Posts: 232
- Joined: Wednesday 20 August 2014 12:08
- Target OS: Windows
- Domoticz version: V3.5981
- Location: NL
- Contact:
Re: Maybe the easiest question (if you know the solution.
Did you select Device?
http://www.domoticz.com/wiki/File:Block ... choice.png
See
http://www.domoticz.com/wiki/Blockly
http://www.domoticz.com/wiki/File:Block ... choice.png
See
http://www.domoticz.com/wiki/Blockly
Win Vista&7; 1#Aeon Z-Stick S2; 1#Aeotec Z-Sick Gen5, 6#Fib.FGBS001; 24#DS18B20; 8#Everspr.AN158-2; 3#Philio PAN04; 1#Philio PAN06, 1#YouLess El; 1#Fib.FGWPE; 1#ZME_RC2; 2#FAK_ZWS230, 2#Quib.ZMNHCDx, 1#Quib.ZMNHDD1, 7#EM6555
-
- Posts: 10
- Joined: Monday 19 February 2018 18:15
- Target OS: Windows
- Domoticz version:
- Contact:
Re: Maybe the easiest question (if you know the solution.
Selected device (ALL).
- Attachments
-
- domo4.JPG (315.38 KiB) Viewed 1591 times
- Domosapiens
- Posts: 232
- Joined: Wednesday 20 August 2014 12:08
- Target OS: Windows
- Domoticz version: V3.5981
- Location: NL
- Contact:
Re: Maybe the easiest question (if you know the solution.
First pick the "and" block.
Put a condition to the left and one to the right.
Left: topolino=On
Right:minnie=On
Make this:
(topolino=On) AND (minnie=On)
And NOT as yours:
topolino=(On AND (minnie=On)
Put a condition to the left and one to the right.
Left: topolino=On
Right:minnie=On
Make this:
(topolino=On) AND (minnie=On)
And NOT as yours:
topolino=(On AND (minnie=On)
Win Vista&7; 1#Aeon Z-Stick S2; 1#Aeotec Z-Sick Gen5, 6#Fib.FGBS001; 24#DS18B20; 8#Everspr.AN158-2; 3#Philio PAN04; 1#Philio PAN06, 1#YouLess El; 1#Fib.FGWPE; 1#ZME_RC2; 2#FAK_ZWS230, 2#Quib.ZMNHCDx, 1#Quib.ZMNHDD1, 7#EM6555
-
- Posts: 10
- Joined: Monday 19 February 2018 18:15
- Target OS: Windows
- Domoticz version:
- Contact:
Re: Maybe the easiest question (if you know the solution.
Sorry for my stupidity but... if I put a condition on the left of the AND it's no possible to attach it to the left side...where is my mistake?
- Domosapiens
- Posts: 232
- Joined: Wednesday 20 August 2014 12:08
- Target OS: Windows
- Domoticz version: V3.5981
- Location: NL
- Contact:
Re: Maybe the easiest question (if you know the solution.
Start from fresh.
Your If block is ok.
take an "and" Blockly
Then there is on the left space for a "=" blockly and on the right side for a "=" blockly
Add on the left topolino and On
Add on the right minnie and On
Study the wiki http://www.domoticz.com/wiki/Blockly
and look careful for the surroundings of each blockly part
Example of the AND structure
http://www.domoticz.com/wiki/File:Block ... _group.PNG
Your If block is ok.
take an "and" Blockly
Then there is on the left space for a "=" blockly and on the right side for a "=" blockly
Add on the left topolino and On
Add on the right minnie and On
Study the wiki http://www.domoticz.com/wiki/Blockly
and look careful for the surroundings of each blockly part
Example of the AND structure
http://www.domoticz.com/wiki/File:Block ... _group.PNG
Win Vista&7; 1#Aeon Z-Stick S2; 1#Aeotec Z-Sick Gen5, 6#Fib.FGBS001; 24#DS18B20; 8#Everspr.AN158-2; 3#Philio PAN04; 1#Philio PAN06, 1#YouLess El; 1#Fib.FGWPE; 1#ZME_RC2; 2#FAK_ZWS230, 2#Quib.ZMNHCDx, 1#Quib.ZMNHDD1, 7#EM6555
-
- Posts: 10
- Joined: Monday 19 February 2018 18:15
- Target OS: Windows
- Domoticz version:
- Contact:
Re: Maybe the easiest question (if you know the solution.
OMG! was really easy but I didn't focus on the level of each block! thank you, thank you so much Domosapiens for your precious help!
Who is online
Users browsing this forum: No registered users and 1 guest