Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot close a popup from a button press #722

Open
4 tasks
Gavergracht opened this issue Jul 10, 2024 · 0 comments
Open
4 tasks

Cannot close a popup from a button press #722

Gavergracht opened this issue Jul 10, 2024 · 0 comments

Comments

@Gavergracht
Copy link

My Home Assistant version: 0.XX.X

Core
2024.6.4
Supervisor
2024.06.2
Operating System
12.4
Frontend
20240610.1

What I am doing:

I have a popup with 2 buttons . a Yes and a no.

What I expected to happen:
When pressed no , i want the popup closed
when yes, I have script, where at the end it also closes the popup

What happened instead:

Nothing
Minimal steps to reproduce:

# The least amount of code or steps possible to reproduce my error




# Put your code/steps here
              - type: custom:mushroom-template-card
                primary: Neen
                tap_action:
                  action: fire-dom-event
                  browser_mod:
                    service: browser_mod.close_popup
                    data:
                      browser_id: THIS

alias: verlichting_allesuit
sequence:

  • service: input_boolean.turn_off
    metadata: {}
    data: {}
    target:
    entity_id:
    - input_boolean.ruimte1
    - input_boolean.ruimte2
    - input_boolean.ruimte4
    - input_boolean.ruimte3
    - input_boolean.ruimte6
    - input_boolean.ruimte5
    - input_boolean.ruimte7
    - input_boolean.ruimte8
  • service: browser_mod.close_popup
    data:
    browser_id: THIS
    mode: single

Error messages from the browser console:
Executed: July 10, 2024 at 9:47:27 AM
Result:
params:
domain: browser_mod
service: close_popup
service_data:
browser_id: THIS
target: {}
running_script: false

// Select everything from the browser console and copy it

// Paste it here

By replacing the space in the checkboxes ([ ]) with an X below, I indicate that I:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant