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

I have a strange problem on iOS where if I call the browser_mod.popup service with a double_tap_action it will instead overwrite the tap_action and the popup will appear on single tap. On my computer if I click the button with my mouse the double tap action works as it should.

type: entity-button
tap_action:
  action: toggle
show_icon: true
show_name: true
entity: light.bedroom_light
hold_action:
  action: call-service
  service: browser_mod.popup
  service_data:
    card:
      type: entities
      entities:
        - entity: light.bedroom_light
    deviceID:
      - this
    title: Bedroom Light
double_tap_action:
  action: call-service
  service: browser_mod.popup
  service_data:
    card:
      type: entities
      entities:
        - entity: light.bedroom_light
    deviceID:
      - this
    title: Bedroom Light

having only recently started using Browser-mod, I had been extremely happy using it to have all my tts intercom announcements played on my iPhone. Ive set that up using the following config:

browser_mod:
  prefix: 'browser_'
  devices:
    7fc21dfb-redacted3:
      name: theboss
    3b69redactedb967:
      name: macbook

and that worked fine until, well, I donā€™t really know. Had a few other issues, and then suddenly realized I hadnā€™t heard my messages over the iPhone anymore. searched for the device_id in the states and it was gone. Apparently, somehow my device_id had changed into another, and I was able to find it with the browser debug service .

Why would the device_id have changed? There hasnt been an update to the iPhone app lately, nor has an iOS update taken place.
would appreciate any pointers in this matter.

Could it be that youā€™re accessing Home Assistant through a new address, e.g. changed IP or different addresses for different networks?

not really no. I think.
My chrome-mac combination has stayed the same, using the exact same address and network. My Rpiā€™s have a fixed IP address on the router.
btw are you saying that it would make a difference for the browser-mod ID if one connects over another wifi network (I have a few in the houseā€¦)?

Not the network, but the URL youā€™re connecting to. Some people use like hassio.local at home and mydomain.duckdns.org away. That would give two different ids.

In your case, it could just be your browsers cache resetting for some reason. Iā€™d imagine an iphone would do that from time to timeā€¦

ah ok, thanks, I didnā€™t realize that.
well, I indeed forced a few ā€˜Reset Frontend cachesā€™ because Iā€™m debugging error floods between custom header and card-modā€¦ and the browser behaving unexpectedly, see Custom Header

so that might have caused the browser-id to have changedā€¦

now how to solve the bigger issue?

What bigger issue?

The issue I am experiencing and is displayed in the inspector as a thing between card-mod and custom header, please see this link: Custom Header

Oh. That issue. About an entirely different plugin in an entirely different thread unrelated to both. Silly meā€¦

Edit: Ok, you did link it. But this is not the place.

thing is, it could be related, hence my cross post here, wouldnā€™t have dared if I would have been sure it wasnā€™t related of course.

reloading the cache (which is very much related to this thread apparently, my browser_id just got reset once more unfortunately) is needed in the other issue to show the frontend correctly, until the error mentioned in the link hits againā€¦

maybe these issues are symptoms of another issue, the constant disconnects I see pop up. donā€™t know which causes which. only thing I see in the home assistant log is endless amounts of:

2020-01-26 17:04:22 ERROR (MainThread) [homeassistant.components.websocket_api.http.connection.2908295216] Client exceeded max pending messages [2]: 512
2020-01-26 17:04:22 ERROR (MainThread) [homeassistant.components.websocket_api.http.connection.2908295216] Client exceeded max pending messages [2]: 512

I see those messages also, I really donā€™t know where to search what this can be.

Is it possible (and if so, how) to have multiple cards display in a popup? For example, I have four sensors each displayed in their own mini-graph-card. Iā€™d like to have the four of their graphs stacked top to bottom in a popup. I currently can only get one to show up:

      - type: entity-button
        name: Test Popup
        entity: sun.sun
        tap_action:
          action: call-service
          service: browser_mod.popup
          service_data:
            title: Popup Example
            card:
              type: custom:mini-graph-card
              name: "Living Room"
              icon: "false"
              height: 75
              font_size_header: 12
              font_size: 75
              animate: true
              hours_to_show: 18
              points_per_hour: 2
              color_thresholds:
                - value: 72
                  color: "#E23201"
                - value: 68
                  color: "#FEB938"
                - value: 64
                  color: "#6BBCD1"
              entities:
                - sensor.living_room_temperature
            deviceID:
              - this

Do note; I am using the sun.sun as just a temporary entity to tie this too while I explore how this all works.

Hi, u should use first a vertical card and then all yours custom mini graph card

1 Like

That was it, man, I swear I tried everything but a vertical stack card. Thank you; sometimes itā€™s the simplest solution that gets over looked the most.

Thank you very much for this mod @thomasloven ! Love it so far.

Just one question:
Iā€™m using Fully Kiosk browser on an android tablet and would like to turn off the screen (light.tablet) 5 minutes after no interaction on the device. Havenā€™t found which trigger I need to use to get it done.
Could you please help?

Thereā€™s a setting for that in the FKB app somewhere. Thatā€™s better than to rely on hass to do it for you.

I know but I would like to deactivate the screen only at night.
Thatā€™s why Iā€™m asking :slight_smile:

I use this command to display a camera image on a tablet, what to do to make a photo from the camera appear instead of a movie

auto_close: true
command: more-info
deviceID:

  • dce9ca7a-98b720e2
    entity_id: camera.streaming_enabled
    large: true

Hi,

First-things-first, thanks for this wonderful plugin! I realy love it, but I have a little problem with camera.

Iā€™m using Hass.io with browser_mod on a Huawei tablet Fully (PLUS) with enabled camera access, javascript frontend, and almost everything what i can enable. In the HA configuration.yaml:

browser_mod:
prefix: ā€œbrowser_ā€
devices:
mydeviceid:
name: my terminal device
camera: true

In the HA log, browser terminal there is no error, and I can reach every other sensor, binary sensor from this device. Even motion detection!
I have several other generic cameras and those are configured and present in system. Only the camera.my_terminal_device is not showing.
Of course Iā€™ve rebooting the Hass.io and the tablet after every change.

In the Fully, (or even in Chrome) the HomeAssistant website is not asking permission for the webcam and/or the microphone. I use it on http.

What am I missing, what I can do to access camera?

Thanks,
Gabor