Continuing the discussion from How to makes lights Flash:
@bravenel just described rather easy way to add “
command "flash"” to a Switch or Light DTH.
This is one of the occasions I wish we could officially “extend” an existing Capability with new optional Commands and/or Attributes… but… anywayyyyyy…
Not sure whether this should be called “Blink” or “Flash” (the latter implies a single bright moment of light).
command flash([frequency, duration ] | number of flashes), and automatically canceled by the next
attribute flashing [true,false](May be difficult to determine if not reported by the hardware. Is this needed?).
attribute flashFrequency [numeric](not sure this is necessary at all).