With the switch from 2.4.2 to the current beta, I experienced the following behavior of the module. Mqtt_variables are not initialized on module startup, therefore I only get $NA after a companion restart oder module restart. When I click on save config, every variable is being updated.
I think I found the changed part, which creates this problem. This is from the companion debug log.
This time every thing works like it used to be.
The message with setVariableValue is too early and the corresponding variable is not yet defined with the debounce of 100ms.
I didn't find a quick way to fix this, without replacing the 100ms with 0ms.
Maybe there is a better solution to this problem.
With the switch from 2.4.2 to the current beta, I experienced the following behavior of the module. Mqtt_variables are not initialized on module startup, therefore I only get $NA after a companion restart oder module restart. When I click on save config, every variable is being updated. I think I found the changed part, which creates this problem. This is from the companion debug log.
When I change the following code (index.js), I get this debug message.
This time every thing works like it used to be. The message with setVariableValue is too early and the corresponding variable is not yet defined with the debounce of 100ms. I didn't find a quick way to fix this, without replacing the 100ms with 0ms. Maybe there is a better solution to this problem.