You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This issue is still present in the current beta version of this adapter
There is no other (open) issue with the same topic (use the search!)
This issue is not described in the adapter documentation / FAQ (read the docs!)
Script type
Blockly
The problem
When using a setState-block in combination with a computed (e.g. per math-block or per variable) value for the expires in (sec) option, it gets ignored.
Example 1 with calculated value (does not work)
See the following example with a calculated value for the expiry time:
Below is the resulting auto-generated JS-Code from Blockly and the corresponding Blockly-XML.
Example 2 with directly entered value (works as expected)
On the other hand, if i directly provide a fixed value as seen in the following example, everything is working as expected:
Consider the resulting JS-Code below, where the given value of 2 is accounted for by "expire: 2".
I think that this is the part that is missing in the above example 1 and therefore it behaves abnormally...
TL;DR: When using the expiry-feature of the setState-Block, only directly entered values are accounted for; It does not work with variables or calculations.
iobroker.current.log (in debug mode!)
No response
Version of nodejs
18.20.5
Version of ioBroker js-controller
7.0.3
Version of adapter
8.8.3
The text was updated successfully, but these errors were encountered:
I'm sure that
Script type
Blockly
The problem
When using a setState-block in combination with a computed (e.g. per math-block or per variable) value for the expires in (sec) option, it gets ignored.
Example 1 with calculated value (does not work)
See the following example with a calculated value for the expiry time:
Below is the resulting auto-generated JS-Code from Blockly and the corresponding Blockly-XML.
Blockly auto-generated JS-Code and Blockly-XML
Example 2 with directly entered value (works as expected)
On the other hand, if i directly provide a fixed value as seen in the following example, everything is working as expected:
Consider the resulting JS-Code below, where the given value of 2 is accounted for by
"expire: 2"
.I think that this is the part that is missing in the above example 1 and therefore it behaves abnormally...
Blockly auto-generated JS-Code and Blockly-XML
TL;DR: When using the expiry-feature of the setState-Block, only directly entered values are accounted for; It does not work with variables or calculations.
iobroker.current.log (in debug mode!)
No response
Version of nodejs
18.20.5
Version of ioBroker js-controller
7.0.3
Version of adapter
8.8.3
The text was updated successfully, but these errors were encountered: