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

Moderator: leecollings

Post Reply
willemd
Posts: 738
Joined: Saturday 21 September 2019 17:55
Target OS: Raspberry Pi / ODroid
Domoticz version: 2024.1
Location: The Netherlands
Contact:

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

Post 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
User avatar
KroontjesPen
Posts: 43
Joined: Thursday 03 November 2016 15:46
Target OS: Windows
Domoticz version: 4.10717
Location: Spijkenisse NL
Contact:

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

Post by KroontjesPen »

This was happened to me yesterday with a dummy switch.
By refreshing the page in Blockly it shows in the right tab.
Bear with me, English is not my native language.
willemd
Posts: 738
Joined: Saturday 21 September 2019 17:55
Target OS: Raspberry Pi / ODroid
Domoticz version: 2024.1
Location: The Netherlands
Contact:

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

Post 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 ;-)
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest