Page 1 of 1

user variable does not show up in blockly. How to solve?

Posted: Friday 27 September 2019 19:30
by willemd
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

Re: user variable does not show up in blockly. How to solve?

Posted: Friday 27 September 2019 19:47
by KroontjesPen
This was happened to me yesterday with a dummy switch.
By refreshing the page in Blockly it shows in the right tab.

Re: user variable does not show up in blockly. How to solve?

Posted: Friday 27 September 2019 21:23
by willemd
solved. the system crashed and then restarted with damaged/inaccessible dbase, all config was gone.
So I did a reboot and everything was back again and also the user variable was visible now.
I hope I don't have to reboot after each variable creation ;-)