Skip to content

Instantly share code, notes, and snippets.

@russellhq
Created December 28, 2020 09:25
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 2 You must be signed in to fork a gist
  • Save russellhq/6971025c0c898603d5031691e7169593 to your computer and use it in GitHub Desktop.
Save russellhq/6971025c0c898603d5031691e7169593 to your computer and use it in GitHub Desktop.
IKEA Bulb Factory Reset
blueprint:
name: IKEA Bulb Factory Reset
description: Factory resets IKEA bulbs for re-pairing with a ZigBee Hub
domain: automation
input:
input_boolean:
name: Input Boolean
description: This Input boolean will trigger the factory reset automation
selector:
entity:
domain: input_boolean
light_switch:
name: Light Switch
description: The light switch to use for factory resetting the IKEA bulb
selector:
entity:
domain: switch
trigger:
- entity_id: !input input_boolean
from: 'off'
platform: state
to: 'on'
action:
- service: switch.turn_on
entity_id: !input light_switch
- delay: '2'
- repeat:
count: '6'
sequence:
- service: switch.turn_off
entity_id: !input light_switch
- delay: '1'
- service: switch.turn_on
entity_id: !input light_switch
- delay: '1'
- service: input_boolean.turn_off
entity_id: !input input_boolean
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment