Process MQTT states

Hey together,

I am a little confused regarding this topic and I wasn’t successful with Google / ChatGPT…

I have HA running with MQTT (Mosquitto broker).
In HA, I have a few lights etc. that I would like to control over MQTT from Loxone, for example the light with the entity “light.bathroom”

So I would like to send the state from Loxone to HA to turn on “light.bathroom” over MQTT:

MQTT Topic: homeassistant/light/bathroom/set
{"state": "ON"}

On the HA MQTT monitor, I can see the new state, but nothing happens (obviously, would be too easy :wink: )

What do I need on the HA side to process this state? Do I need an automation, do I need to set something up in my configuration.yaml?

I don’t know where to start, so any hint is appreceated :slight_smile:

Thanks!

Yes an automation with the mqtt trigger that runs the light turn on action.

1 Like