codmpm / node-red-contrib-loxone

Connect the Loxone Miniserver to node-red via the Websocket API
MIT License
74 stars 24 forks source link

Changing multiple lights in a Lighting Controller ends in only changing the first one #84

Open Programie opened 4 months ago

Programie commented 4 months ago

I've a Lighting Controller with 3 outputs. I want to set the state of all 3 outputs using a function node.

For that, my function node has 3 outputs. Each of them is connected to a control-out node with the output of the Lighting Controller selected as "Control".

For some reason, whenever I send the 3 different payloads to the control-out nodes, only the first output is changed. But if I send the payload to only a single control-out node, the light state changes as expected. The same also works if I delay each message using the delay node.

My function node (with three outputs configured) looks like the following:

return [
    { payload: 30 },
    { payload: 50 },
    { payload: true }
];

Then the function outputs are connected to three different control-out nodes with the respective outputs of the Lighting Controller being selected as "Control".

image

The flow looks like the following:

image

I'm not sure whether the issue only appears when using the outputs of the Lighting Controller. I never had any issues with controlling multiple outputs at the same time using other controllers or simple switches.