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

According to the documentation here, it seems like you need to use card-mod to style the header.

1 Like

Hi all, quick question, is it possible to invoke the Popup when clicking on a Statistics Graph rather than an Entity? I have a dashboard with a Statistics Graph card that pulls in 4 temp sensorsā€™ data from the last 24 hours. As you can imaging on a smaller tablet screen this is a little hard to read as a smaller card and I really wanted to have the ability to pop this out to either a Wider or Fullscreen view. Just trying to see if this mod is what will give me that ability.

I did a quick search but wasnā€™t finding anything promising yet, so thought Iā€™d quickly ask the group here.

Feeling really dumb asking this here as itā€™s the simplest thing ever. Using browser_mod, is it possible to put in a script to open up a webpage on my computer? If not, tips?

Sometimes itā€™s the simple things that can get overcomplicated.

Hi, just upgraded to 2.x now my popups that replace a entities more info dialog wont work.

it is written like this in my lovelace config

views:
  - theme: Backend-selected
    path: main
    popup_cards:
      person.milo:
        title: Logg
        card:
          type: vertical-stack
          ...

With version 1.x it would replace the dialog with cards defined hereā€¦ Have been googling all morning and reading documentation but i am non the wiser. Any one willing to help?

You will need to replace each popup in the popup_cards: section with an individual custom:popup-card.

This the key part of the documentation

Damn, now i feel stupid. Was looking for a way to put this in the lovelace configuration file, but making the card in visual editor worked out really nice!

I have multiple Amazon Fire HD 10 tablets running HA, some with the app, others through the Wall Panel app. It appears that both routinely loose the BM connection, showing unavailable. I have each ticked-off the Automatically Close Connection setting. Anyone else having this issue? Never had problems with BM 1.0, and 2.0 seemed to be working for at least a couple of weeks until recently.

I can never even turn the media player on using any of 3 computers Iā€™ve registered as a Browser Mod device. Playing anything does nothing, media player always show off no matter what. Anyone experience this or know of anything I can do to resolve? Thanks.

1 Like

Many users reported this, although there was no solution yet, nor any explanation from author - he is being silent about this problem. As a result i gave up on BM regarding media player and BMā€™s sensors. For media player on android tablets i use fully integration, on windows i use hass.agent integration, both are rock solid.
BM is great tool for popups, navigation commandsā€¦. I couldnā€™t live without it - all these tools work just great, only registering part doesnā€™t. Oh, and default dashbord for specific users (if you set it) also doesnā€™t work in my caseā€¦

Could you pls explain what you mean with fully integration? I have developed an alarm clock with an own dashboard running that on an android tablet or on my mobile when Iā€™m on a business trip. The browser media player plays the sound sound on that device. As this solution isnā€™t very reliable I look for an alternate solution.

1 Like

If you run fully kiosk on your android tablet (which is, really, the best option to display HA screen) then you have fully integration in HA that you can install, which includes media player and tons of sensors, including screen on/offā€¦

Then, if you run fully kiosk thereā€™s a second option: to run pre-prepared mp3ā€™s via rest commands. Anyway, fully also offers many rest commands to control it.
But, you have to use a paid fully kiosk, since you have to enable remote administration. You can get away with free one, you just get a warning sign all over screen, so itā€™s more or less only usable for test if itks really what you need before you buy. But, itā€™s worthed to pay (itā€™s under 10ā‚¬).
I also have alarm clock set up and i use pre-made mp3 files and o play them via rest command

1 Like

hello together,

after several month of a break because of privat things, i want to start with home assitant again.
at the moment i am trying different things and ideas, to find the best approach for my dashboard.

one plan was to use browser_mod in conjunction with auto-entities to show mit lights.
ā†’ for that i found several screenshot and today i had success by implenting it

but one thing bothers meā€¦ i dont know how to descirbe it best, but after i click my button to fire the dome event - the Popup came immediately but then it took 1sec to show the filted values

Is this by design? Or am i doing something wrong?

      action: fire-dom-event
      browser_mod:
        service: browser_mod.popup
        data:
          title: Lights On
          content:
            type: custom:auto-entities
            filter:
              include:
                - group: light.all_lights
                  state: 'on'
                  options:
                    type: custom:mushroom-light-card
                    show_brightness_control: true
                    layout: horizontal
                    tap_action:
                      action: toggle
                    use_light_color: true
                    card_mod:
                      style: |
                        ha-card {
                          padding: 4px 12px !important;
                        }
              exclude: []
            card:
              type: custom:layout-card
              cards: []
              layout_type: masonry
            sort:
              method: friendly_name

In my group, there are only 2 lights for testing purposes

Perhpas anybody has a hint, what i can change or do better

Hi, I finished to move my two displays to fully kiosk. Quite expensive but provides some new functionality which gives me more control over the displays. Screen on/off, brightness etc.
Interestingly I can start my media file for the alarm clock via the media_player entity but I cannot stop it.
Lucky me, the mp3 has only 30 seconds but do you know, how to stop a playing media on a device.
You mentioned rest commands. I never worked with them. Do you have an example?

Well, i donā€™t play ā€œendlessā€ music (like radio etcā€¦), so i donā€™t have (bad or any) experiences with that. I only use short mp3ā€™s for warnings, state info (like garage open/closed) and similar. So i made a bunch of mp3ā€™s, saved them in a folder inside HA (say, www/music -->local/music) and created rest commands. You must enable remote administration in fully and set a password.

Note that 192.168.x.y is internal IP of your tablet, so make sure that youā€™ll make it static! And donā€™t forget to enter a password.

Examples:
(192.168.a.b is IP of HA instance)

kiosk_pavlesoba_pavle_odprta:
  url: "http://192.168.x.y:2323/?cmd=playSound&url=http://192.168.a.b:8123/local/music/garaza_pavel_je_odprta.mp3&loop=false&password=yourpassword&stream=3"

kiosk_pavlesoba_ales_odprta:
  url: "http://192.168.x.y:2323/?cmd=playSound&url=http://192.168.a.b:8123/local/music/garaza_ales_je_odprta.mp3&loop=false&password=yourpassword&stream=3"

Itā€™s in Slovenian, but those two commands tell over my tablet that first or second garage door is opened.

There are more rest commands available:
(192.168.x.y is internal IP of your tablet)

kiosk_pavlesoba_reload_start_page:
  url: "http://192.168.x.y:2323/?cmd=loadStartUrl&password=yourpassword"

kioskpavlesoba_clear_cache:
  url: "http://192.168.x.y:2323/?cmd=clearCache&password=yourpassword"

kiosk_pavlesoba_load_page:
  url: "http://192.168.x.y:2323/?cmd=loadUrl&url=http://192.168.0.110:8123/pavle-soba/0/&password=yourpassword"

kiosk_pavlesoba_screen_on:
  url: "http://192.168.x.y:2323/?cmd=screenOn&password=yourpassword"

kiosk_pavlesoba_screen:_off:
  url: "http://192.168.x.y:2323/?cmd=screenOff&password=yourpassword"

kiosk_pavlesoba_volume_60:
  url: "http://192.168.x.y:2323/?cmd=setAudioVolume&level=60&stream=3&password=yourpassword"

kiosk_pavlesoba_screensaver_on:
  url: "http://192.168.x.y:2323/?cmd=startScreensaver&password=yourpassword"

kiosk_pavlesoba_start_chrome:
  url: "http://192.168.x.y:2323/?cmd=startApplication&package=com.android.chrome&password=yourpassword"

you can see all possiible rest commands in fullyā€™s help site:
Fully Kiosk Browser & App Lockdown Help - Fully Kiosk Browser (fully-kiosk.com) - click here and then do a search for word ā€œrestā€ a few times and youā€™ll get to the ā€œfully app rest interface (plus)ā€ section (sorry, i donā€™+t know how to give a direct linkā€¦)

EDIT: ohā€¦just to be sure: you put these rest commands in configuration.yaml under ā€œrest_commandā€ and restart HA. You can test each command just by typing whole url in browser, hit enter and it should to selected action on tablet.

1 Like

Thanks a lot. I will have something to test tomorrowšŸ˜

I also have an alarm clock Lovelace on my nightstand Fire HD 10, and Browser Mod was working great with 1.0, but with 2.0 itā€™s been unreliable, to now not working at all with media player. I donā€™t have a paid Fully Kiosk login (yet), but am using Alexa Actionable Notifications to send the alarm wake mp3 in lieu of BM. But there is a little lag, and itā€™s not local, so I assume if I lose internet, my alarm sound will fail.

Good advice on the Fully Kiosk solution, but obviously would love to get BM working again. I wonder whether uninstalling it and manually clearing an data would help. But Iā€™m not sure how Iā€™d easily find all the BM junk to clear out.

Thatā€™s, beside the media player isuue, the reason, why I moved to fully kiosk: to reduce the rework only to reconfigure the popup stuff, which is really enough work.
Fully kiosk works great for my alarm clock. I have to think about an alternate to the navigate commands but this is less important.

BTWā€¦i have ā€œalarm clockā€ set up quite with scheduler component. I created a couple of scripts and i trigger them with scheduler component. In script i turn on my radio, dim-up lights, trigger mp3ā€¦ for a sloooow wake-upšŸ˜‡
What i really like about scheduler comonent is ease of changing time/day and i can create many of them for various occasions. Then i just turn them on/off when needed.

Looks like a great idea. I will think about it.
I use this configuration screen:


this is the main view:

and this automation:

- id: "190"
  alias: Wecker
  initial_state: true
  variables:
    volume_base: "{{ states('input_number.starting_alarm_volume') |float }}"
    volume_1: "{{ volume_base + 0.2 }}"
    volume_2: "{{ volume_base + 0.4 }}"
  trigger:
    - platform: template
      value_template: "{{ states('sensor.time') == states('sensor.wakeup_alarm_time') }}"
    - platform: state
      entity_id: input_button.wecker_test
  condition:
    - condition: state
      entity_id: input_boolean.wakeup
      state: "on"
    - condition: template
      value_template: "{{ is_state('input_boolean.wakeup_' ~ ['monday','tuesday','wednesday','thursday','friday','saturday','sunday'][(now().weekday())], 'on') }}"
  action:
    - service: input_boolean.turn_on
      entity_id: input_boolean.wakeup_running
    - service: script.turn_on
      entity_id: script.add_log
      data:
        variables:
          name: "Der Wecker"
          message: "wurde gestartet"
    - service: browser_mod.navigate
      data:
        navigation_path: /lovelace-wecker/2
        deviceID: "{{ state_attr('variable.active_alarm_target','deviceid') }}"
    - service: media_player.volume_set
      data:
        entity_id: media_player.wecker
        volume_level: 0.1
    - alias: "Repeat alarm until stopped"
      repeat:
        sequence:
          - service: media_player.play_media
            data:
              entity_id: media_player.wecker
              media_content_id: "https://xx.duckdns.org:8123/local/sounds/morningMist.mp3"
              media_content_type: music
          - delay:
              seconds: 36
          - service: media_player.volume_set
            data:
              entity_id: media_player.wecker
              volume_level: >
                {% if repeat.index in(0,1) %} 
                  {{volume_base}}
                {% elif repeat.index == 2 %}
                  {{volume_1}}
                {% else %}
                  {{ volume_2}}
                {% endif %}
        until:
          - condition: or
            conditions:
              - condition: state
                state: "off"
                entity_id: input_boolean.wakeup_running
              - condition: state
                state: "on"
                entity_id: input_boolean.wakeup_snooze_running

Another script stops or snoozes the alarm

By the way: The rest command http://x.x.x.x:2323/?cmd=stopSound&password=xxxx works great.

Thanks a lot!

1 Like

Hi, I already installed Fully Kiosk on my alarm clock tablet device which works solid and reliable. As expected, Browser_mod detected a new browser device, so far so good. The strange thing is, that the state of the sensor is now 2. Up to know I only regocnized 1 or unavailable for my other devices. Can sombody explain, what the state 2 means? Itā€™s still version 1.5
PS:
In addition I detected, that the last_seen attribut is refreshed every around 5 seconds and the path attribut switches between two tabs on the dashboard.

path: /lovelace-wecker/wecker-settings or /lovelace-wecker/0

This happens independetly from the screen visibility.
On the device itself, nothing unusual happens. It shows the main screen as it should do.