diff --git a/src/handleClick.js b/src/handleClick.js index a8a8ae2..1203588 100755 --- a/src/handleClick.js +++ b/src/handleClick.js @@ -26,6 +26,13 @@ export default (node, hass, config, actionConfig, entityId) => { case 'url': { if (!actionConfig.url) return; window.location.href = actionConfig.url; + break; + } + case 'fire-dom-event': { + e = new Event('ll-custom', { composed: true, bubbles: true }); + e.detail = actionConfig; + node.dispatchEvent(e); + break; } } };