GitHub Gist link: https://gist.github.com/russellhq/5720c0d041290da83478f0c737d4db0e
Use this Blueprint to factory reset your Osram Zigbee bulbs when you have them connected to a smart switch. This can be helpful if you are having trouble resetting your bulbs, are troubleshooting and need to reset a number of times or are swapping/resetting your hub and need to repair your bulbs.
Blueprint YAML Code
blueprint: name: Osram Zigbee Bulb Factory Reset description: Factory resets Osram Zigbee 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 Osram 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: '5' sequence: - service: switch.turn_off entity_id: !input light_switch - delay: '5' - service: switch.turn_on entity_id: !input light_switch - delay: '5' - service: input_boolean.turn_off entity_id: !input input_boolean