There exists a major problem however.
A simple LUA script event:
Code: Select all
commandArray = {}
commandArray['Variable:MyVariable']=tostring('abc')
return commandArray
A Blockly test, if MyVariable == 'abc' fails; they are not equal.
If I disable the LUA script, then set MyVariable to 'abc' from the Domoticz web interface, apparently the same value, then the Blockly test works as expected.
This is obviously an encoding issue, but how can I get around it? What text encoding is Blockly expecting, and how can I force LUA (UTF-8?) to work with Domoticz (ISO-8859-1?)
The same problem occurs with integer User Variables and LUA values, using e.g., tostring(5).
Thank you all in advance, and a Merry New Year to you all!