Expose my lights/switches to MQTT

Hey

is it possible to expose entities to MQTT? so i can control them in other solutions too?

I see there is a statestream:

But i think it only exposes the state, dont think there is a way to send a payload back to turn on/off an light/entity

thnx for feedback

I created a custom component which does exactly that:

Aha, that’s indeed interesting!! I have some old indoor android 5 panels, HA doesn’t run on it, way to slow…

But I tried to install openhab on it, and works fine… So I want to expose my domains to openhab, so I can control stuff on those indoor panels…

Thnx, will have a look