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

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

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.