Name of event type.
Optionaldetail: HASSDomEvents[HassEvent]Detail value containing event-specific payload.
Optionaloptions: { bubbles?: boolean; cancelable?: boolean; composed?: boolean }Object specifying options. These may include:
bubbles (boolean, defaults to true),
cancelable (boolean, defaults to false), and
node on which to fire the event (HTMLElement, defaults to this).
The new event that was fired.
Dispatches a custom event with an optional detail value.