Eglo Connect.Z Reset sequence

Hi,

I have had to pair quite a few of Eglo’s Connect.Z ceiling lights. Since they are all put on a smart switch (so that they can be turned on remotely), I wrote the following script that runs the convoluted reset sequence for you. All you need to do is to select the switch that actually controls the power as a parameter of this script.

sequence:
  - action: switch.turn_off
    data: {}
    target:
      entity_id: "{{switch_entity}}"
  - delay:
      hours: 0
      minutes: 0
      seconds: 10
      milliseconds: 0
  - action: switch.turn_on
    data: {}
    target:
      entity_id: "{{switch_entity}}"
  - delay:
      hours: 0
      minutes: 0
      seconds: 1
      milliseconds: 0
  - action: switch.turn_off
    data: {}
    target:
      entity_id: "{{switch_entity}}"
  - delay:
      hours: 0
      minutes: 0
      seconds: 6
      milliseconds: 0
  - action: switch.turn_on
    data: {}
    target:
      entity_id: "{{switch_entity}}"
  - delay:
      hours: 0
      minutes: 0
      seconds: 1
      milliseconds: 0
  - action: switch.turn_off
    data: {}
    target:
      entity_id: "{{switch_entity}}"
  - delay:
      hours: 0
      minutes: 0
      seconds: 6
      milliseconds: 0
  - action: switch.turn_on
    data: {}
    target:
      entity_id: "{{switch_entity}}"
  - delay:
      hours: 0
      minutes: 0
      seconds: 1
      milliseconds: 0
  - action: switch.turn_off
    data: {}
    target:
      entity_id: "{{switch_entity}}"
  - delay:
      hours: 0
      minutes: 0
      seconds: 6
      milliseconds: 0
  - action: switch.turn_on
    data: {}
    target:
      entity_id: "{{switch_entity}}"
  - delay:
      hours: 0
      minutes: 0
      seconds: 12
      milliseconds: 0
  - action: switch.turn_off
    data: {}
    target:
      entity_id: "{{switch_entity}}"
  - delay:
      hours: 0
      minutes: 0
      seconds: 6
      milliseconds: 0
  - action: switch.turn_on
    data: {}
    target:
      entity_id: "{{switch_entity}}"
  - delay:
      hours: 0
      minutes: 0
      seconds: 12
      milliseconds: 0
  - action: switch.turn_off
    data: {}
    target:
      entity_id: "{{switch_entity}}"
  - delay:
      hours: 0
      minutes: 0
      seconds: 6
      milliseconds: 0
  - action: switch.turn_on
    data: {}
    target:
      entity_id: "{{switch_entity}}"
fields:
  switch_entity:
    name: Switch entity
    selector:
      entity:
        domain: switch
    required: true
    description: The switch that controls the power to the EGLO light
description: ""
alias: Eglo Connect.Z Reset Sequence
icon: mdi:lock-reset