[Node-RED/MQTT] Bidirectional MQTT "Light On/Off" functionality?

I set up a Yeelight lamp with NODE-RED and MQTT to turn it on/off, change the color, etc… no problems, however, I retrieve the on/off property of the lamp that I try to send to the MQTT functionality on Gladys « Lighting On/Off » so that the turning off/on is taken into account in the dashboard when it is done manually (for example).

It seems that this « Lighting On/Off » functionality only sends data and does not receive any, is that correct?

I did the same with a LIFX without any issues, haven’t you defined it as a sensor?

And to update on the Gladys side, the topic is different

/gladys/master/device/…

Oh! Thanks: it was the wrong topic! :confused: