Using remote control to activate things via Home Assistant

Hi,

I have a Sonoff RFBridge and some small 4 button remote controls that will go neatly on a keyring.

I have Tasmota on the RFBridge and when I press buttons on the remote it publishes messages to MQTT.

My HA has the MQTT integration which I use to control Sonoff switches.

I’d like to get the button presses into HA and make things happen. I’m a newbie though.

Does Homeassistant have the idea of receiving from a remote control? I didn’t find it on the web site.

It doesn’t seem to meet the use-case of a “switch” since the buttons are momentary so there is no state.

Then - if I can get the button press event into HA, how to do the automations? HA has some capabilities, but I also have Node Red available to me so I’m not sure what’s considered the best approach.

I’d welcome any pointers to get me on the right track.

Thanks,
Steve

I’d welcome any pointers.

Check out my custom component which does exactly what you need: https://github.com/danobot/mqtt_payload_processor

Awesome Danny - thanks a lot. I’m looking at it now.

Also interested in how you write one so I’ll look at it for that, too.

Steve