Node-RED flow + MQTT feature update

Hello,

I’m trying to get the following Node-RED flow working:

With the following MQTT node:

I want this node to be up to date when I make changes from the Daikin app and for the on/off function to work from Gladys.

My problem is that if I turn on the air conditioner via Gladys and a GET is performed a few seconds later, the value switches back to off because it’s not up to date on the Daikin API :frowning:

Do you have a solution to propose for this need?

If it’s not very clear, don’t hesitate to ask me :slight_smile:

Thanks :wink:

Hi @prohand :slight_smile:

Maybe you could create a variable shared by both parts of the flow that would « prevent » doing a GET if there has been an update on the Gladys side in the last 10 seconds? (10 seconds, or more or less depending on the update time on the Daikin side)

1 Like

Thanks a lot @pierre-gilles I had more or less that idea in mind but I couldn’t formulate it correctly ^^

So it’s all good like this :

2 Likes