error with domoticz.variables
Posted: Wednesday 18 October 2017 16:26
Hi all,
I have one problem with the instruction "domoticz.variables".
I take the value of one variable with the instrunction:
and the result is correct:
In the User Variable section of domoticz I can see that the value has been deleted:
But at the next run of the script the log of the variable report the same value:
If I restart the raspberry all works fine until I insert new value in this variable.
Do you have any idea?
Thanks.
I have one problem with the instruction "domoticz.variables".
I take the value of one variable with the instrunction:
Code: Select all
allPromemoria = domoticz.variables('listaPromemoria').value
domoticz.log('allPromemoria: '..allPromemoria..'/', domoticz.LOG_DEBUG)
after that, I execute the script and, at the end, I cancel the value in the user variable with this instruction:startTextmy NoteendTextstartData2017-10-18 16:14:00endData
Code: Select all
domoticz.variables('listaPromemoria').set('')
In the user variable section the value is empty.startTextmy NoteendTextstartData2017-10-18 16:14:00endData
If I restart the raspberry all works fine until I insert new value in this variable.
Do you have any idea?
Thanks.