Node Red flow to change change state of button or switch

I have a garage door opener that is running in domoticz (for historic reasons). And, I’ve got node red running in home assistant.

I can send a MQTT message from node-red to domoticz to open the garage door, when a button is pushed.

But I was wondering if there is some way to give some visual feedback, change the state/icon of the button? Maybe use a (virtual) swicht instead?

That completely depends on wether or not Domoticz reports the state of the door by mqtt…

Ah yeah, should have mentioned that in the orginal post I guess.

So yeah the door opener does report it’s state via Domiticz into MQTT into homeassistant & node-red. As a matter of fact I already have a text that displays open or closed.
But I’d rather this be a more visual indication of the state like an open or closed garage door icon…

Plenty working material regarding that topic: