Lights single flash broken

Hi everyone.
HASS OS with Hue integration. Previously working as part of a doorbell chime script producing one single flicker of lights. Broken since HASS v7 upgrade. Selected “flash light” in the script GUI. YAML produced:

device_id: xyz
domain: light
entity_id: light.hue_white_candle_1
type: flash

This used to give the desired flicker but since the upgrade it now produces multiple flashes - quite annoying.
Through forum searching I think it’s defaulting to flash: long which is supposed to give 15 flashes. Interesting as I am not specifying short or long…
I have tried:

type: turn_on
device_id: xyz
entity_id: light.hue_white_candle_1
domain: light
flash: short
brightness_pct: 100

but this just turns on the light (if it is off) or does nothing (if it is already on).

Any advice? Thanks

Tried

service: light.turn_on
data:
  flash: short
target:
  entity_id: light.hue_white_candle_1

Still flashing 15 times!

If using a v2 hue hub and running the new hue integration that utilises the new hue api2 then the original flash function is no longer available.

This is because hue themselves removed it from the new api.

So the currently very hard working maintainer of the hue integration has found a workaround by utilising the mode of flashing the bulb via what the hue hub would do when pairing a new bulb.

So as far as I know unless hue reinstate the flash in their v2 api (and they may as v2 is not fully functional in some regards yet) then the current offering is all that is available via the flash command.

You can of course create scripts to toggle lights on and off in the mean time to your requirements.

That’ll be it, thanks @rossk .

Time to get creative then!

The workaround you mentioned to utilise the pairing flash - is that documented anywhere, do you know?

That is being utilised already in home assistant as the current flash option that you are already using, it’s simply calling a different function in the back end.

1 Like

Ah I see. That’s what gives me the 15 flashes :frowning:

flash: short is back and working with latest upgrade :slight_smile: