Ikea Tradfri Bulbs reset script using E1603 (or whichever standard "Wireless control outlet" is for your region)

Here is simple script that allows you to reset IKEA Tradfri bulbs to factory settings (not working for my 1000lm bulbs but not relevant…) What does it do
it shuts down bulb waits 4 seconds and in loop turn on and off bulb until 6 cycles are performed for factory reset of it. Works perfectly on new bulbs - except on white 1000lm bulbs already mentioned by many users…
settings you can/should tweak are wait time for on off states milliseconds: 300 that means wait 0.3 seconds, milliseconds: 1200 that means 1.2 seconds and so on.

reset_ikea:
  alias: reset_ikea
  sequence:
  - service: switch.turn_off
    target:
      device_id: 844178841ce7abb94d3a714f9092980e
  - delay:
      hours: 0
      minutes: 0
      seconds: 5
      milliseconds: 0
  - repeat:
      count: '5'
      sequence:
      - service: switch.turn_on
        target:
          device_id: 844178841ce7abb94d3a714f9092980e
      - delay:
          hours: 0
          minutes: 0
          seconds: 0
          milliseconds: 400
      - service: switch.turn_off
        target:
          device_id: 844178841ce7abb94d3a714f9092980e
      - delay:
          hours: 0
          minutes: 0
          seconds: 1
          milliseconds: 500
  - service: switch.turn_on
    target:
      device_id: 844178841ce7abb94d3a714f9092980e
  mode: single

1 Like

This is brilliant and exactly what I was looking for. Thank you for sharing. Here is my slightly modified version for resetting OSRAM Lightify bulbs

alias: reset lightify
sequence:
  - service: switch.turn_off
    target:
      device_id: daf7f9a00c4419d0244f07fbe7f538d2
  - delay:
      hours: 0
      minutes: 0
      seconds: 5
      milliseconds: 0
  - repeat:
      count: '5'
      sequence:
        - service: switch.turn_on
          target:
            device_id: daf7f9a00c4419d0244f07fbe7f538d2
        - delay:
            hours: 0
            minutes: 0
            seconds: 3
            milliseconds: 0
        - service: switch.turn_off
          target:
            device_id: daf7f9a00c4419d0244f07fbe7f538d2
        - delay:
            hours: 0
            minutes: 0
            seconds: 2
            milliseconds: 0
  - service: switch.turn_on
    target:
      device_id: daf7f9a00c4419d0244f07fbe7f538d2
mode: single

Absolute lifesaver @bmanojlovic - thank you.

No matter how many times I tried manually, I couldn’t get the timing right. I used to be able to, but these new bulbs must be slightly more precise. Your script did the job first time.

1 Like

Perfect! This was driving me crazy - some of my Ikea bulbs I was able to reset, with others I constantly failed. The automation worked for all of them, they are much more sensitive and require the correct timing between the on/off cycles. Thank you!