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

Ok Thanks. But still not clear how to get the camera of the tablet into HA thenā€¦ or do I ask something stupid :flushed:

Thereā€™s a rest command to get a camera snapshot. That can be used with the generic camera i hass.

I saw already some http links to do some remote access things. WIll config this and see if its handy for me !

Can I somehow pass a style variable in Browser Mod Popup?

EXEMPLE (using card-mod):

type: picture-elements
image: /local/test.png
elements:
  - type: image
    image: /local/test1.png
    entity: switch.test
    style:
      filter: brightness(var(--brightness))

style:
  .: |
    ha-card {
      --brightness: {{  '0%' if... else... }}

The code above does not work with Browser Mod Popup

Did you ever figure out the formatting for this? Iā€™m running into the same issue.

Hi - great mod! :slight_smile:

Will the ā€œdevice idā€ always be the same from a given browser regardless of it moving networks/IPs etc.? I have trouble understanding if some of my browser plugins confuse the pluginā€¦

Unfortunately I havenā€™t figured this out yet.

Hej.

The device_id is stored by your browser. Itā€™s kind of like a cookie, and is connected to the webpage via itā€™s domain name.
So, if you access hass via say https://hassio.local at home but https://xyz.ui.nabu.casa at not_home, you will get two different device_ids in the same browser on the same machine.
When you get back home, you will get the old device_id back.

Anonymous mode in your browser does not store the device_id between sessions.

Thanks @thomasloven - that explains a lot! So, it is even better than I thought :smiley:

Iā€™m trying to refresh my wall tablet back to my home lovelace screen after so many minutes of inactivityā€¦Would anyone know how to trigger an automation if the ā€œlast seenā€ hasnā€™t changed in 5 minutes?

type: browser_mod
last seen: 2020-02-10T19:17:04.066973
deviceID: 08285aef-219ab0f2
path: /lovelace/home
visibility: visible

I am having a weird result when I use this component where I want to display the ā€œlight-popup-cardā€ in a popup card. It displays the popup card but it will also display the sun card when i click off it on my phone. It also displays 2 headers.

Does anyone know why this happens based on the code I have?

popup_cards: 
  switch.kitchen_patio_switch:
    title: "TEST"
    style:
      position: fixed
      z-index: 999
      top: 0
      left: 0
      height: 100%
      width: 100%
      display: block
      align-items: center
      justify-content: center
      background: rgba(0, 0, 0, 0.8)
      flex-direction: column
      margin: 0
      "--iron-icon-fill-color": "#FFF"
    card:
      type: custom:light-popup-card
      entity: switch.kitchen_patio_switch
    deviceID: 
      - this

Card that comes up:

When I click one of the ā€œXā€:

Try this: https://github.com/thomasloven/hass-browser_mod/releases/tag/22

Thanks for the quick response. However, I believe I am already on release 22, based on what HACS says. I am running HA version 0.105.2, right now.

Iā€™m doing style passing extensively in my popups and havenā€™t had any issue.
Iā€™m doing it in custom ā€˜popup_cardsā€™ and with type entities as opposed to picture-elements
but I doubt that would affect the result ā€¦
you might want to check that youā€™re running card-mode v12 as v13 seems to currently broken.

Why this great plugin is not available in HACS?

It is.
Auswahl_275

1 Like

Ah, sorry, I was looking in plugins and I didnā€™t find that info on docs also. Thx.

Anyone know why I have three lights related to browser_mod? I would think that two were old sensors from previous sessions/cookies, but if you look, all three of the ā€˜lightsā€™ have been seen today!

their type says it all I think.
afaik they call them "virtual lightā€™ - each browser_mod has one