Need help configuring Sonoff T1 & MQTT

Good evening all,

I’m trying to get some Sonoff T1’s configured in to Home Assistant using Tasmota and MQTT.

I’m really struggling with Tasmota and just considering writing my own firmware to be quite honest but before I spend and evenign doing that I thought I would ask here.

Esentially I would like the button on the front to act like a switch and send/recieve it’s status from MQTT. Then the relay in the switch to get it’s status from MQTT.

In my view it would be:

User presses button on faceplate -> MQTT Message.
Home assistant gets MQTT message changes state of device sets MQTT Message for LED
Faceplate LED changes to state set by MQTT.

Then the relay is just following the MQTT state that it has a topic for (separate to the switch).

Hope that makes sense and I would appreciate any help. I’ve spent the day going through and trying to understand the Tasmota docs to no success.

Thanks!