user variable does not show up in blockly. How to solve?
Posted: Friday 27 September 2019 19:30
sorry, I am new to the domoticz user inteface.... hopefully a simple question
I defined a user variable called dailycounter as integer with initial value 0
I want to use that counter and update it in blockly so to limit the number of messages per day after trigger of an event (for example electricity usage > 2000). So each time a message is sent I want to update the counter and if the counter is larger than 5 it should stop sending the message until the next day.
First script I want to create is a daily reset of the counter at 00:01 hrs
So I created a blockly script "if time=00:01 do set var A-F no devices found = 0"
and then I would expect to be able to select the user variable from the drop down list to replace "no devices found" by "dailycounter".
But I don't see the user variable "dailycounter" in blockly anywhere.
What am I doing wrong?
Thanks
Willem
I defined a user variable called dailycounter as integer with initial value 0
I want to use that counter and update it in blockly so to limit the number of messages per day after trigger of an event (for example electricity usage > 2000). So each time a message is sent I want to update the counter and if the counter is larger than 5 it should stop sending the message until the next day.
First script I want to create is a daily reset of the counter at 00:01 hrs
So I created a blockly script "if time=00:01 do set var A-F no devices found = 0"
and then I would expect to be able to select the user variable from the drop down list to replace "no devices found" by "dailycounter".
But I don't see the user variable "dailycounter" in blockly anywhere.
What am I doing wrong?
Thanks
Willem