I am playing around with automation in HA and trying to make a bulb flash. It toggles once, buts stops after one count. What am I missing?
alias: Bulb blink automation
description: ''
trigger:
- platform: device
type: turned_on
device_id: 886ffaf867a0af9f333acf8d19bbcaaf
entity_id: light.tp_link_smart_bulb_ed93
domain: light
condition:
- condition: device
type: is_on
device_id: 886ffaf867a0af9f333acf8d19bbcaaf
entity_id: light.tp_link_smart_bulb_ed93
domain: light
for:
hours: 0
minutes: 0
seconds: 1
action:
- repeat:
count: '10'
sequence:
- service: light.toggle
data:
transition: 1
target:
device_id: a0e63a465befc53561a4b55606fed63c
mode: single