Open a new brower window in lovelace "tap_action"

Is there any way of getting a small sized browser window to open in the middle of the screen on a tap_action action in lovelace?

I have this code:

          - entity: vacuum.xiaomi_vacuum_cleaner
            style:
              '--iron-icon-height': 60px
              '--iron-icon-width': 60px
              left: 72%
              top: 75%
            tap_action:
              action: url
              url_path: '192.168.10.143:8123/lovelace/10'
            type: state-icon

it opens a new tab in chromium, on the pi controlled touchscreen I have as a dashboard.
Is it any way of forcing it to open a new smaller browser window?
or is that a setting I need to to in chrmoium on the pi controlling the dashboard?

bumping after 1 week

If by a smaller browser window you mean something like a popup, then have a look at the popup service of browser_mod.
You can have whole lovelace cards popup whenever you click on desired items.

1 Like

Thanks for reply. I have tried that aswell, but maybe I am using it wrong.

Here is the code in Lovelace:

          - entity: vacuum.xiaomi_vacuum_cleaner
            style:
              '--iron-icon-height': 60px
              '--iron-icon-width': 60px
              left: 22%
              top: 78%
            tap_action:
              action: call-service
              service: browser_mod.popup
              service_data:
                card:
                  calibration_points:
                    - map:
                        []
                  entity: vacuum.xiaomi_vacuum_cleaner
                  map_image: /local/pictures/layout/upstairs_big.png
                  type: 'custom:xiaomi-vacuum-map-card'
                  zones:
                    []
                deviceID:
                  - desktop_home
                  - dashboard
                  - phone
                  - unknown
                title: Vacuum_controll
            type: state-icon

And here is the config.yaml

browser_mod:
  devices:
    bxxx251_c2xxxx0:
      name: desktop_home
    axxxc3-xxxc6:
      name: phone
    cxxxfc1-aexxxfae:
      name: dashboard
    c42xxxxae-f9xxx206:
      name: unknown

Just try


deviceID: this

And I guess your card definition for the popup is wrong