I have a popup I want to close with a scripted button. Tried 2 scripts, but they don’t work.
Anyone an idea ?
- type: custom:mushroom-template-card
primary: Ja
tap_action:
action: fire-dom-event
browser_mod:
service: script.verlichting_allesuit
data:
browser_id: THIS
script:
- service: browser_mod.navigate
data:
path: /ui-lovelace-minimalist/home
browser_id: "{{ browser_id }}"
enabled: true
- service: browser_mod.close_popup
data:
browser_id: "{{ browser_id }}"