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

I need help to figure out a way to display a fresh download of picture every time. The problem is that even though the picture changes the name and link does not. E.g.: https://www.yr.no/en/content/2-3181986/meteogram.svg.

So it keeps displaying the picture from the date i first downloaded it. Any suggestions?

    tap_action:
      action: call-service
      service: browser_mod.popup
      data:
        browser_id: 1234
        content:
          type: picture
          image: https://www.yr.no/en/content/2-3181986/meteogram.svg
      target: {}
    entity: ''

Hi iā€™ve been trying to migrate from the old version of browser mod to the new version and no matter what i try, i cant seem to get it to work. any assistance anyone can provide is extremely appreciated! i will gladly pay anyone for their time

      tap_action:
        action: fire-dom-event
        browser_mod:
          service: browser_mod.popup
          data:
          content:
            cards:
              - cards:
                  - cards:
                      - cards:
                          - color_type: '[[pu_light1_colortype]]'
                            dbltap_action:
                              action: more-info
                            entity: '[[pu_light1_ent]]'
                            hold_action:

Is it possible to hide the popup-cards ā€œmoreā€ in such a way that the ā€œvisibleā€ cards are centered etc? Now all my cards are sorted in a masonry-style because my ā€œhiddenā€ popupcards are visible on right sideā€¦

And in edit mode:

EDIT: I can change layout-type to ā€œVerticalā€ (from layout-card) but is that the only possibility?

I have this script for testing but i cannot get it working.

ultra_hd_jazz_test:
  alias: Ultra HD jazz test
  sequence:
  - service: browser_mod.popup
    data:
      title: Test
      content:
        test
        right_button: Salotto
        right_button_action: call-service
        service: media_player.play_media
        service_data:
          entity_id: media_player.salotto
          media_content_id: "christmas radio"
          media_content_type: "AMAZON_MUSIC"
        left_button: Studio
        left_button_action: call-service
        service: media_player.play_media
        service_data:
          entity_id: media_player.studio
          media_content_id: "christmas radio"
          media_content_type: "AMAZON_MUSIC"

Where is the error? Maybe wrong indentation? Or what?

I have not updated to version 2.0 yet, so this is completely untested. I think your indentation is wrong, but you also seem to be mixing up syntax from other custom integrations. Going on the examples here, would this work?:

ultra_hd_jazz_test:
  alias: Ultra HD jazz test
  sequence:
    - service: browser_mod.popup
      data:
        content: test
        title: Test
        right_button: Salotto
        right_button_action: 
          service: media_player.play_media
          data:
            entity_id: media_player.salotto
            media_content_id: "christmas radio"
            media_content_type: "AMAZON_MUSIC"
        left_button: Studio
        left_button_action: 
          service: media_player.play_media
          data:
            entity_id: media_player.studio
            media_content_id: "christmas radio"
            media_content_type: "AMAZON_MUSIC"

No, it still doesnā€™t work also after checking the examplesā€¦
I followed your corrections in the script, but nothingā€¦

Can you be more specific about which bit isnā€™t working? Is the pop-up appearing? Does it have buttons? Is it the button actions that are not working? Have you tested whether your media player service calls work on their own without being in a pop-up card?

I found where lies the problem. I was trying to play amazon music to one of my sonos play:3 devices that it seems is not able to reproduce music from amazon music directly from HA, while it can if from the Sonos app.
Is there a solution for this?

Not a Sonos or Amazon Music user, so I cannot help there Iā€™m afraid.

But as this is a thread about browser_mod, you should probably start a new thread about that, or search the forum to see if others have already discussed the issue. It seems you are not the first to ask, but no answer there either in any case.

1 Like

I have an iPad hanging on the wall. How to play music on the iPad when the window pops up.

Maybe you can help meā€¦
I have a script which uses browser_mod.popup service. It works as expected on my Chrome (in an iMac), but if i try to run the same script from the companion app the browser_mod.popup is not working. I registered as browser_mod devices my Chrome on the computer (iMac) and my chrome on the mobile. If i use Chrome to run HA that script is working, but NOT from the companion app.
How to register the companion app as browser_mod device?
If i try to run the browser_mod from the sidebar of the companion app it doesnā€™t load anything also after clearing cachesā€¦

hello,
Am using cloud.say and do some TTS to my amazon tablets.
The media_players has been created through browser_mod.

service: tts.cloud_say
data:
  entity_id: media_player.e573a061_4437bb43
  message: Central heat has been switched off automatically.

It does work.
Then I tried to adjust the volume, because when it runs sometimes it is too late and volume is too loud.

data:
  volume_level: 0.1
service: media_player.volume_set
target:
  entity_id:
    - media_player.e573a061_4437bb43

The service runs and I can double check from entities state that the volume attribute has been adjusted accordingly. Here is a screenshot for your reference.

My problem is that if the TTS replays the volume is still 100%.
It seems that it doesnā€™t consider the volume which has been set to 10%

Anyone had the same problem please? Have you found a solution ?

Same problem here, iā€™m not sure to understand what he suggested (2 years ago lol).

Do you use companion app or are you using the browser?
Thatā€™s because i am using the android companion app and i am still unable to add as device in browser_mod.

Are you able to register compaion app ad browser_mod device?
If yes, how you did it? In my companion app if i click on the sidebar over browser mod i always get a blank screen. I was able to register my mobile chrome but not the companion appā€¦

I did it, but why i cannot get the browser mod screen on my companion app?
Always blank screen and in this way i cannot use browser_mod services only for the companion appā€¦

I had only tested the browser. Blank page in my iOS companion app.
Havenā€™t tried it out in Fully Kiosk yet.

Iā€™m not sure you are supposed to get browser_mod to work in the companion app? ā€œBrowserā€ is in the name after allā€¦

All of a sudden (maybe after updates) my Browser Mod devices donā€™t show in the selection menu of Automations, and at least Navigate doesnā€™t work. I deleted one and re-added it with a new name. Same. The do show in the Devices list. I deleted the Integration & re-added. No improvement. BTW, had been working for over a month. v2022.12.6, OS 9.4.

EDIT: Restoring to 2022.12.1 seems to have fixed it (but Navigate is inconsistent).

Hi, short question is there a style variable to theme the more-info popup dialog header? Didnā€˜t find anything with search.

Cheers