Issue of the topic: please be detailed explaining your issue
Hi there,
I’d like to have a non semantic item for summing up energy values from other items over time by use of a Blockly rule. The item is member of a group with persistance only if updated.
As long as the item is empty (“NULL”) it is not pickable in Blockly. How can I initialize such an item, say set it to zero?
After trying several times it works now also with the item selection dialog. Reason for the behavior is not clear. Maybe it had to do with some effects after upgrading to Openhab 4.0.2.
Thanks!
If you use the developer sidebar (alt-shift-d) the third tab has a “Scratchpad” option which will create a -Scratchpad- Script which is perfect for this sort of thing. And it’s quickly accessed thanks to the developer sidebar.
In newer JS Scripting, the following is supported which is a little more terse and easier to read.
It’s Edition 11.
Didn’t look in the logs after having initialized the items. Right now there is no warning present, even after starting a simple rule, which took nearly 15 seconds. (But mostly the rule is completed in parts of a second.)