BACKGROUND
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.
THE NEED
I need the IKEA Motion Sensor to notify HA on motion activities. This would allow me to:
- Steer events from HA
- Log motion activities
WHAT I DO NOT WANT
The IKEA Motion Sensor to trigger Trådfri lamps on/off. That task is relayed to HA.
THE SOLUTION
To buy a GU10 400lm Trådfri lamp and hack it so I can use the hack as a motion notification device.
BILL OF MATERIALS
- IKEA Trådfri GU10 400lm
- LED
- 470Ω resistor
- optional: L78L33 voltage regulator.
THE HACK
-
Pry off the lens cap
-
Unscrew the LED plate
-
Desolder the plate contacts
-
Gently pry off the aluminum plate heat diffuser. It is glued.
-
Gently pry out the circuit board. It is just snapped in. No cables, no solder nor glue.
-
This is the circuit board:
At this point you can already hack the device:
The input voltage is 3.3 volts!
REFINING
-
You can solder out the Zigbee board and connect a LED that is to indicate if motion has been detected.
-
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.
HOW IT WOKS
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.
- You have to pair the device (hack) to the IKEA Motion Sensor and to the IKEA Gateway. Follow the IKEA instructions.
- You should see a new Light in HA as this new GU10 we have just installed
- 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
:
binary_sensor:
platform: template
sensors:
motion_md:
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
TO CONSIDER
- 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.
- The minimum time between two consecutive motions is 1 minute. This is set by the IKEA Trådfri Motion Sensor (back trimmer).
- 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.
PLACING THE MOTION SENSOR
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)
THE RESULT
and subsequently all automatisations I can do around it.
Happy hacking!
(BTW, I can share my HA configuration if needed)
UPDATE Sept-2019: I have decommissioned this solution in favour of CC2531 with zigbee2mqtt.