Browser_mod popup show webpage

I have this and need some help :

      - type: picture
        image: https://demo.home-assistant.io/stub_config/t-shirt-promo.png
        tap_action:
          action: fire-dom-event
          browser_mod:
            service: browser_mod.popup
            data:
              title: Steca
              content: http://192.168.10.195/page.yield.year.html
              size: wide
              deviceID: THIS

This gives me a popup with the text.
The I tried to have this page opened :

      - type: picture
        image: https://demo.home-assistant.io/stub_config/t-shirt-promo.png
        tap_action:
          action: fire-dom-event
          browser_mod:
            command: popup
            title: Steca
            card:
              type: iframe
              url: http://192.168.10.195/page.yield.year.html

but that will not work.
What do I need to do here ?

Yes, it is 5 months after you asked, but I landed here while I searched Google for right syntax for my case, so I will paste it here anyway, maybe it could be helpful for someone. This is what is working for me (you have bad indentation in your second example above):

            tap_action:
              action: "fire-dom-event"
              browser_mod:
                service: "browser_mod.popup"
                data:
                  content:
                    card:
                    type: iframe
                    url: http://192.168.0.202
5 Likes

Thanks so much. That was just what I was looking for.

1 Like