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

Unable to use browser popup on entity from a room card #1573

Open
jogon99 opened this issue Dec 23, 2024 · 0 comments
Open

Unable to use browser popup on entity from a room card #1573

jogon99 opened this issue Dec 23, 2024 · 0 comments
Labels

Comments

@jogon99
Copy link

jogon99 commented Dec 23, 2024

I'm using a room card template, in which you can use 4 different entities. While trying to configure the tap_action on one of the entities, it does nothing. I think I have the syntax correct because I use the same tap_action on the room card, and it works.

My question is if it is not possible to use a browser mod pop up action on an entity.

I will give the yaml, in which the tap_action of the card shows well, but not the tap_action of entity_1

          - type: 'custom:button-card'
            template:
              - card_room
              - blue_no_state
            name: Salón
            icon: mdi:sofa
            entity: sensor.temperatura_salon
            tap_action:
              action: fire-dom-event
              browser_mod:
                service: browser_mod.popup
                data:
                  content:
                    type: horizontal-stack
                    cards:
                      - type: custom:mushroom-light-card
                        entity: light.lampara
                        use_light_color: true
                        show_brightness_control: true
                        collapsible_controls: true
                        show_color_temp_control: true
                        show_color_control: false
                        icon: mdi:lamp
                        secondary_info: none
                        layout: vertical
            variables:
              label_use_temperature: true
              label_use_brightness: false
              entity_1:
                entity_id: light.sofa_2
                icon: mdi:lightbulb
                templates:
                  - yellow_on
                #popupluces
                tap_action:
                  action: fire-dom-event
                  browser_mod:
                    service: browser_mod.popup
                    data:
                      content:
                        type: horizontal-stack
                        cards:
                          - type: custom:mushroom-light-card
                            entity: light.lampara
                            use_light_color: true
                            show_brightness_control: true
                            collapsible_controls: true
                            show_color_temp_control: true
                            show_color_control: false
                            icon: mdi:lamp
                            secondary_info: none
                            layout: vertical
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant