How to use a regular 220v motion sensor

Hi all,

Recently I bought a Philips Ecomood wall light for the front porch. This is a regular 220v motion sensor with led light.
I want to be able to push a signal to HASS when the motion sensor is triggered so I can use that information for other automations.

The motion sensor inside the wall light just works as a regular switch and turns on the 220v when it detects motion and this enables to leds to go on. I already added an extra wire so I have a wire which contains 220v IF motion is detected.

What is my best solution to catch this trigger?

I thought about using a esp8266, since this is easy to connect to HASS with MQTT, but I’m not sure how to connect this with the wire. Should a put a 220v a relay in between, or should i put a resistor in between to make it 3.3v or 5v?
Or could I use a sonoff or z-wave wallsocket for this.

I’d love to see your idea’s on this!

I’m interested in tips as well. Let me know if you come up with a solution.

So far i thought about the following solutions:

  1. Simply plug the light in a z-wave wall plug and this way i should get the current pushed to hass

or if this is not responsive enough for my liking

  1. Add an USB charger to the extra wire I added which converts it 5v that can be connected to an esp8266 so I can push the state through MQTT