Hack: IKEA Trådfri Motion Sensor for presence control

The IKEA Trådfri Motion Sensor and the corresponding IKEA Trådfri Gateway does not provide information on motion activities as such rather than the motion sensor turns on and off the paired lamps.

I need the IKEA Motion Sensor to notify HA on motion activities. This would allow me to:

  1. Steer events from HA
  2. Log motion activities

The IKEA Motion Sensor to trigger Trådfri lamps on/off. That task is relayed to HA.

To buy a GU10 400lm Trådfri lamp and hack it so I can use the hack as a motion notification device.


  1. IKEA Trådfri GU10 400lm
  2. LED
  3. 470Ω resistor
  4. optional: L73L33 voltage regulator.


  1. Pry off the lens cap

  2. Unscrew the LED plate

  3. Desolder the plate contacts

  4. Gently pry off the aluminum plate heat diffuser. It is glued.

  5. Gently pry out the circuit board. It is just snapped in. No cables, no solder nor glue.

  6. This is the circuit board:

At this point you can already hack the device:

The input voltage is 3.3 volts!


  1. You can solder out the Zigbee board and connect a LED that is to indicate if motion has been detected.

  2. You can print out a case and mount the board inside:
    (Case Trådfri Zigbee module (GU10 400lm))

Below you can see I have made use of a L78L33 voltage regulator that is to convert the USB 5V input onto 3.3V needed by the Zigbee board.

0. It is important to understand that the whole Trådfri system is to see this device (hack) as a lamp that is to turn on/off as the IKEA Motion Sensor dictates. The LED on the device (hack) is to indicate if the “lamp” is on or off.

  1. You have to pair the device (hack) to the IKEA Motion Sensor and to the IKEA Gateway. Follow the IKEA instructions.
  2. You should see a new Light in HA as this new GU10 we have just installed
  3. You can modify HA to look like this:

Now it is time to get the “light” component to act as a “binary sensor” component. Here you go the configuration to add to configuration.yaml:

  platform: template
      friendly_name: "Motion MD"
      entity_id: light.tradfri_bulb_gu10_w_400lm
      value_template: '{{ is_state("light.tradfri_bulb_gu10_w_400lm", "on") }}'
      device_class: motion


  1. I do not experience the reportedly lag some users are experiencing with the IKEA Trådfri Motion Sensor. My experience shows that the motion triggers the device immediately.
  2. The minimum time between two consecutive motions is 1 minute. This is set by the IKEA Trådfri Motion Sensor (back trimmer).
  3. Remember that it is the IKEA Trådfri Motion Sensor triggering the on/off sequence of the device. Obviously, this can be overridden by HA.

If you want to place the sensor in a corner, you can make use of this design of mine:
(IKEA Trådfri Motion Sensor corner holder)



and subsequently all automatisations I can do around it.

Happy hacking!

(BTW, I can share my HA configuration if needed)


So the TL;DR is you hack an Ikea light to not be a light and use a paired motion sensor to turn that on/off; and have HA watch that to see if motion?

Has anyone decoded the motion to light protocol as perhaps those motion sensors could be interfaced directly somehow?

I love hacks like this, very inventive. However I would prefer to buy a working out of the box motion sensor :slight_smile:

Hi, thank you for this hack. It works really well.

But I added some other devices on my gateway and now the GU10 zigbee module is no more recognized.
I tried to reset it by shutting down the power (plug and unplug the wires from the GPIO connectors) four then six times but it’s still not working.

Does someone have an idea how to reset the zigbee module to make a new pairing?

Hi Romes, welcome to the HA community!

I have experienced similar behaviour with my device as well. These are the two recurrent ones:

  1. The device runs out of battery for some days and so it seems it loses the configuration.
  2. HA stops attending to the device although the IKEA app on the phone does.

For the first case, I have to reset the motion sensor device and repair it again to the hacked-gu10 bulb and to the gateway. This is quite inconvenient because it requires reprogramming HA since the name of the motion sensor is to change. About how to reset it, you can find the instructions manual on the IKEA webpage.

For the second case, I have to restart HA.

These are the versions (firmware) I’m running on:
IKEA Gateway: 1.4.15
IKEA Motion Sensor: 1.2.214
IKEA Hacked-GU10 bulb: 1.2.214
HA: 0.78.3 (yes, very antique!)

I hope it helps!