Retrieve an MQTT device's state later

It’s me again…

In the MQTT integration, I registered a device with the Switch feature.

I would like to be able to query the state of this device by running a job regularly, but it doesn’t work, which is normal, because you first have to be subscribed to the topics to see what passes through them, which I don’t want to do.

Do you

I’m replying to myself

The solution came through Node-RED… I didn’t want to get into it, then I saw Pierre-Gilles’ video…
with 2 "boxes

1 Like