Too stupid to use switch node and/or function with Aqara magic cube T1 Pro :(

Again that works for me, the message arrives at debug node seite 4 (which I had to create and wire up)

Can you check that you don't have a wire directly joining your input and seite 1?

LOL, the debug node is ALWAYS triggered. Even if there is no wire connected!

Did you deploy after removing the wire? Refresh the browser to be sure you are viewing the actual flow running.

PS, do you have an issue? The debug node named "side 4" was triggered by the 4th output. Is that what you expected?

Restart node-red

You are giving us mixed messages.

image

image

Delete the debug nodes OUTPUT 1 and Output Cube.
Deploy.

Do you still see output from these two nodes?

Do you have debug nodes with the same names on other flows?

Sorry for the confusion about the different messages. The CubeT1 is a dice with six sides. Depending on the side pointing upwards, the value for "side" is between 1 and 6. But the switch node should still react correctly. But deleting the strange debug node and restarting Node-Red helped.

The switch node is reacting correctly is it not?

Yes, it works as expected. The problem was apparently only due to the faulty debug node.

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.