What hardware to detect switched mains input -> HA -> mains relay

I have a number of existing PIR sensors. I want to feed their “detected something” 230VAC output triggers into Home Assistant, and then control the 230VAC lights from HA.
All the PIR sensors have 230VAC Live, Neutral & a Switched-Live output.

Sonoff ZBmini l2 looked promising, but apparently the switched mains input is not signalled to HA, it just controls the load directly. There doesn’t seem to be any existing way to replace the firmware with something more flexible.

I’d prefer zigbee, but am open to other options. I don’t want to replace the sensors.

Any suggestions?