Automations mqtt

Hi everyone, I’ve just started with home assistant. Before this I used arduino and various components to group all my home automation in “Blynk App”.
Now I’m starting to migrate all my project to Home assistant and I came across the mqtt protocol.
Well, now I need some help:

  • I have created a system that reads the status of a relay via a nodemcu and publishes a message via mqtt (example: Alarm Armed!)

Now I would like to create an automation that, upon receipt of this message, home assistant sends me a notification via notify.mobile.

I tried somehow, also using input_boolean but failed. Can anyone give me some advice? Thank you

You need to create an MQTT Binary Sensor and an automation to use the sensor‘s state as trigger.

You might also have a look on ESPHome, which is easy to use and very well integrated into HA.

oh good, literally in 10 seconds I had everything working! Great Chris :slight_smile:

1 Like