Use Sonoff / Tasmota Switch via HA

Hi all.

Bit of a noob so please bare with.

I’m using a Sonoff Mini flashed with Tasmota to interface with a standard light switch in my house.

I’d like to use it to control several Hue lights at the same time. I’ve got Hue working on my HA in another room, so no worries there.

When I switch the physical light switch, I get:


via MQTT. This immediately causes the Sonoff Mini to switch states.

Is it possible to “split” my Sonoff into two Home Assistant devices - one that monitors the physical switch, and one that is the actual switching component of the Sonoff Mini?