Custom Button Card - flash when condition is met

  1. Do not post an unformatted code, it is impossible to analyse. User use a “preformatted text” button or place your code manually into triple “`” (the symbol is located under ESC).
  2. This is custom-button-card related issue, so suggest to ask in the corr. thread.