šŸ”¹ Browser_mod - turn your browser into a controllable device, and a media_player

      card_mod:
        style: |
          ha-dialog {
            --mdc-dialog-min-width: 180px !important;
            --mdc-dialog-max-width: 180px !important;
          }

that is what I had foundā€¦

Iā€™ve got it centered and smaller, the height is still not ok

your code is not working for meā€¦

The code I posted worked on my pc and phone. The pic is directly from my phone.

type: custom:mushroom-template-card
primary: Alles uit
icon: mdi:lightbulb
tap_action:
  action: fire-dom-event
  browser_mod:
    service: browser_mod.popup
    data:
      size: fullscreen
      card_mod:
        style:
          ha-dialog$: |
            @media (min-width: 100px) {
              div.mdc-dialog div.mdc-dialog__container {
                --mdc-dialog-min-width: 100px;
                height: 130px;
                   }
            div.mdc-dialog div.mdc-dialog__scrim {
             background: rgba(0, 100, 100, 0.4);
              }            
      content:
        type: vertical-stack
        cards:
          - type: custom:mushroom-template-card
            primary: Weet je het zeker ?
            icon: mdi:help
            card_mod:
              style: |
                ha-card {
                  pointer-events: none;
                    }
          - type: horizontal-stack
            cards:
              - type: custom:mushroom-template-card
                primary: Ja
                tap_action:
                  action: call-service
                  service: script.verlichting_allesuit
                card_mod:
                  style:
                    mushroom-state-info$: |
                      .container {
                        margin: -10px;
                        }  
                      .primary {
                        padding: 0px 0px 0px 40px;
                                  }
                    .: |
                      ha-card {
                          background-color: rgb({{ states("input_text.kleur_iconen")}})
                                }                       
              - type: custom:mushroom-template-card
                primary: Neen
                tap_action:
                  action: call-service
                  service: script.verlichting_allesuit
                card_mod:
                  style:
                    mushroom-state-info$: |
                      .container {
                        margin: -10px;
                        }  
                      .primary {
                        padding: 0px 0px 0px 40px;
                                  }
                    .: |
                      ha-card {
                          background-color: rgb({{ states("input_text.kleur_iconen")}})
                                }

My PC

1 Like

Now, thatā€™s fine !

The only thing thatā€™s bothering me is that my squares are square and not rounded like my card buttonsā€¦

add --ha-dialog-border-radius: 10px;

card_mod:
        style:
          ha-dialog$: |
            @media (min-width: 100px) {
              div.mdc-dialog div.mdc-dialog__container {
                --mdc-dialog-min-width: 100px;
                --ha-dialog-border-radius: 10px;
                height: 130px;
                   }
            div.mdc-dialog div.mdc-dialog__scrim {
             background: rgba(0, 1, 100, 0.4);
              }        
1 Like

Iā€™m finding that changing the theme from Light to Dark and from Dark to Light does not work reliably at all. Iā€™ve followed the instruction to change the setting to NOT kill the server connection but it didnā€™t make any difference.
I think somehow when the phone hasnā€™t been active for a while, it ignores updates.
E.g. I have an automation to set the theme on all devices to Dark at night and to Light at 5:30am and in many cases the change to Light does not register.
Has anyone else noticed this? Does anyone have any solution? Thanks.

Have a look at this thread: Fully Kiosk and Samsung Galaxy Tab A8 theme issue

It has some tips for switching light and dark mode in browser mod

Thanks, the way I solved it is to stop using the browser mod as it cannot guarantee the device will be available at all times.
I just created a dedicated dark theme and just set to that theme to simulate picking ā€˜darkā€™. It works extremely reliably using the frontend set theme API (provided you enable 'Use Default" for each device that you want to create.

Browser modā€™s entities are unreliable for me, too. I canā€™t use browser modā€™s media player, too, since itā€™s unavailable quite frequently (i use hass agentā€™s one on windows and fully kioskā€™s one for android). I couldnā€™t find any solution for these problems, so as far as browser mod addon goes i only use popup and some card mods - these things work perfectly.

Hereā€™s my browser modā€™s dark mode sensor (grey is unavailable). Note that this device is laptop and itā€™s always on, always showing my main HA dashboard:

Please explain how you can emulate a click on the ā€œopen full screenā€ button based on an event?
How to emulate a left mouse button click? And exit back from full screen mode.
Video source - ā€œgo2rtсā€ integration.
I am not an English speaker, it is difficult to study this topic. Thank you.
Card code:

type: custom:webrtc-camera
streams:
  - url: Doorbell

Hi all, is there a way to stop browser mod media player from going to idle and stay on 247?

Howdy browser_mod people. I set up browser_mod a bit ago to see if i could change the path of a device from one dashboard to another if it was being tampered with, which worked, and now Iā€™m curious. For some reason, all of my devices say that the media player is unavailable. Anyone have any ideas as to why this is or how to fix it?

All the greyed out devices are from browser_mod

Media player doesnā€™t work for me, too. I stopped worrying about it a long time ago, since no one knows why, as it seems, and thereā€™s no real solution, so as far as browser mod goes i use other things like popups, navigate etcā€¦ which all work perfectly.
For media player on PC i use hass agent which works. Install it on PC and into HA (integration).

I aā€™m using browser mod with the following code but donā€™t receive any map. After i save the code the became content: null can someone help me so i receive a map when i click?

                    tap_action:
                      action: fire-dom-event
                      browser_mod:
                        service: browser_mod.popup
                        data:
                          content: 
                          title: Aanwezig
                          entities:
                            - person.myhomeassistant
                            - zone.home
                            - device_tracker.m2003j15sc
                          hours_to_show: 24
                          default_zoom: 14
                          dark_mode: false
                          aspect_ratio: 15.5:6.5
                          type: map
                          timeout: 10000
                          size: wide

Popups are broken with homeassistant 2024.7.0.
We can only hope that someone can fix this since there is no alternative.

I receive a pop-up with title but no map

First time browser mod user here. Pretty experienced Home Assistant user (18 months in).

Working with the companion app on a Samsung Android tablet (not sure if that makes a difference?)

Iā€™ve installed browser mod as per instructions, cleared the companion app cache and cache in Chrome browser. Followed setup instructions to register browser:

However, when I try a test popup in Developer Tools:

service: browser_mod.popup
data:
  title: Title
  content: Test text

I get an error:

This service requires a target, please define a target entity_id, device_id, or area_id under target: or data:

I cannot see anywhere in the documentation where it says anything about having to define a target to test if a browser popup works.

What am I doing wrong?

Hmā€¦ i have installed 2024.7.0 but popups work hereā€¦
I have a bunch of popups with custom button card, all work like before.

Hi, as @Protoncek states: they are not broken with 2024.7.0 but something with your setup will be the issue.
Which version of HA did you run before this one?

There are 2 different types of popups.

The one via the tap_action which seems working (but you have no gui edit Options, only yaml Code), and the one via type: custom:popup-card which seems broken.

Not all cards Support tap_action and for them we need the custom popup-card (which ist broken).

Actually, there is something broken in 2024.7
Take look on:
https://github.com/thomasloven/hass-browser_mod/issues/719
and:
https://github.com/thomasloven/hass-browser_mod/issues/715