Use Sonoff / Tasmota Switch via HA

Tags: #<Tag:0x00007f739edfaf20>

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:

SWITCH1 = {"STATE":"OFF"}

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?