I would like to send values from the HomeAssistant to an ESP8266 via MQTT. I have already successfully done it the other way around (sending temperature values from the ESP to HomeAssistant via MQTT) however now I would like to be able to send values via the HomeAssistant interface to the ESP.

Is this possible to do this (is there a component like sensor or switch that does this)?

I'd be very happy for any help you could give me and feel free to ask if anything is unclear.


If you have sent data from the device to the HomeAssistant over MQTT, then you can do it for sure the other way around. MQTT is completely bidirectional, there is no notion of server and clients as in HTTP, but broker and clients, and all clients are first class citizens.

You have to determine what topic the HomeAssistant uses to send the data (let's say /my-cool-device/commands), and you have to configure the device so that it subscribes to /my-cool-device/command, and handles incoming messages.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.