There seems to be a race condition in loxone.js, mostly visible when using node-red as a docker container.
More precisely, it might happen that a control command is sent (send_control_command) although the structure file has not been received yet by the node.
Hi,
There seems to be a race condition in loxone.js, mostly visible when using node-red as a docker container.
More precisely, it might happen that a control command is sent (send_control_command) although the structure file has not been received yet by the node.
I would suggest to move the following lines:
from
client.on('authorized', function () {
toclient.on('get_structure_file', function (data) {