ZHA: Short flash with zigbee lights?

I want a zigbee light to make a short flash pulse. flash:short does not work. So I do it that way:

- alias: l1
  id: 'l1'
  trigger:
    platform: time_pattern
    seconds: "/8"
  action:
  - service: light.turn_on
    data:
      entity_id: light.lightify_indoor_flex_rgbw
  - service: light.turn_off
    data:
      entity_id: light.lightify_indoor_flex_rgbw

But the pulse is not very short. Also, if I use “brightness” and “kelvin”, the flash is much longer. Any idea how to make it faster?

If your bulb cannot support certain effects natively (like blink and flash) then attempting to emulate them with on/off commands is limited by Zigbee’s communication speed. For every command propagated to the light via the mesh network, there is a reply from the light acknowledging receipt of the command. These transactions take a finite amount of time. The shortest possible interval is simply an on command immediately followed by an off command. That’s what you tried and concluded was too long. It’s hard to imagine how on/off can be reduced.

1 Like

I thought maybe with command chaining, sending on and off together?

Ok then I will build my flash light with a esp8266 and mosfet driver.