HueMagic: How to query states (and get rid of a feedback-loop)?

Hello everybody,
I have built a flow to increase the color temperature of a Hue group. The point is that this flow is increasing the ct automatically, somehow I have got a feedback.

The HueMagic Group Node:
Anmerkung 2020-02-05 100614

The JS-Code:

var p = msg.payload;
var ct = p.colorTemp;

if (ct > 460) {
    ct = 153;
    msg.payload = {
        "colorTemp": ct
    };
} else {
    msg.payload = {
        "incrementColorTemp": 40
    };
}

return msg;
  1. question: how do I stop the feedback-loop?
  2. question: what does the uncommented checkbox do?
  3. question: what ist the intension of the checkbox "Ignore messages"?

I appreciate any statements, thank you!

Best,
Timo

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