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

has this been recognized yet:

browser_mod.js:149:19230 TypeError: undefined is not an object (evaluating 'this._blackout.style')

filling the home-assistant.log

Should be fixed in the current master version (if installed from HACS). Iā€™m not ready to make it a release yet, because I havenā€™t tested it in FKB, but it will be 1.2.0.

Updated to version 1.2.0 and the pop-up titles appears as undefined

4 Likes

Hi all.
Is there a way how to achieve the pop up auto closing after preset time is over?
Example: click on button=>pop up=>30 secs=> pop up closes :slight_smile:

Uups, I see that it is no go. Not in the direct way.

Hi all,

First, i love this custom component very much. I usually use it for pop_up cards.
But i found some errors in the Core logging of HA. My HA is crashing almost everyday. I can ping the RaspberryPi3 but the webinterface is not reachable and i have to reboot it.
So when checking al the errors in the logging i found this. And maybe it has nothing to do with the crash of HA but Iwill fix this error. The error is:

> 2020-10-30 11:11:19 WARNING (MainThread) [homeassistant.bootstrap] Waiting on integrations to complete setup: browser_mod
> 2020-10-30 11:11:24 ERROR (MainThread) [homeassistant.components.websocket_api.http.connection.547697897536] Error handling message: Unknown error
> Traceback (most recent call last):
>   File "/usr/src/homeassistant/homeassistant/components/websocket_api/connection.py", line 95, in async_handle
>     handler(self.hass, self, schema(msg))
>   File "/config/custom_components/browser_mod/connection.py", line 42, in handle_update
>     devices[deviceID].update(msg.get("data", None))
>   File "/config/custom_components/browser_mod/connection.py", line 83, in update
>     self.sensor = self.sensor or create_entity(
>   File "/config/custom_components/browser_mod/helpers.py", line 47, in create_entity
>     adder = hass.data[DOMAIN][DATA_ADDERS][platform]
> KeyError: 'sensor'
> 2020-10-30 11:11:34 ERROR (MainThread) [homeassistant.components.websocket_api.http.connection.547697897536] Error handling message: Unknown error
> Traceback (most recent call last):
>   File "/usr/src/homeassistant/homeassistant/components/websocket_api/connection.py", line 95, in async_handle
>     handler(self.hass, self, schema(msg))
>   File "/config/custom_components/browser_mod/connection.py", line 42, in handle_update
>     devices[deviceID].update(msg.get("data", None))
>   File "/config/custom_components/browser_mod/connection.py", line 83, in update
>     self.sensor = self.sensor or create_entity(
>   File "/config/custom_components/browser_mod/helpers.py", line 47, in create_entity
>     adder = hass.data[DOMAIN][DATA_ADDERS][platform]
> KeyError: 'sensor'

I have reinstalled browser_mod ones via HACS.
Have a RaspberryPi3 with HA 0.116.4 with HASSOS 4.15.

I hope someone can help me to fix these errors.

This can be achieved by calling the pop-up in a script then adding this to the sequence

 - delay:
    seconds: 30
 - service: browser_mod.command
   data:
     command: close-popup

Hope this helps

I am confused a bit.

So far I have (on wall panel) following custom:button-card config:

          - type: "custom:button-card"
            template: custom_button_sensor_on_active_glow
            entity: binary_sensor.hydro_mb
            name: Reduction 
            tap_action:
              action: call-service
              service: browser_mod.popup
              service_data:
                deviceID:
                  - this
                title: Hydrolysis
                hide_header: true
                card:
                  type: entities
                  entities:
                  - entity: input_boolean.cover
                    type: custom:multiple-entity-row
                    name: Hydro reduction
                    toggle: true
                    show_state: true
                    state_color: true
                    entities:
                    - entity: input_select.hydro_reduction
                      name: Reduction

If I click to button, it pops up. If I click area out of pop-up, it closes.
I have no clue how to fire a script from it or how to do it anyhow.
Could you push me to the right direction?
Should I call two services i.e. pop-up and script under one tap-action ?

Here is a link to the example using a script -> https://github.com/thomasloven/hass-browser_mod/wiki/Cookbook

Upsā€¦I should read more carefully :slight_smile:
Thank you :+1:

Hello,
in the popup I have a button, clicking it navigates to another view, but I would like that popup will close after clicking.
I canā€™t deal with it, any suggestions?

is there a way to have a browser-mod media-player set a default (lowā€¦) volume?

always scares the living day(night)light out of me when my mobile device starts notifying me of events in the middle of the nightā€¦

There is a slider, and yes, Iā€™ve taken that down now many times, but it always ends up being maxed out again. both on the opening screen of the iPhone, and in the Lovelace frontend for the media_player for my iPhone.

clicking the cogwheel does nothing

this is for all browser-mod devices btw.

@photo64 answered this question literally 3 posts above yours

Hi Thomas,

please let me ask if youā€™d be willing considering a FR adding severaL built-in variables to Browser-mod, next to the currently available
deviceID, path, userAgent and currentUser .

I ask because with the demise of Custom Header we can no longer reach its built-in vars, which I suppose stem from card-tools to begin with, and could be made available in browser-mod because of that?

userid,
viewTitle
viewIndex
url
and the 2 binaries:
isAdmin and isOwner

In developer mode, I was able to use these in the frontend to check and see if all was as expected, via a template, and now have to use several tricks manually in the inspector (to check the path and view) or am not able at all, because even inspector wonā€™t show/canā€™t reach that.

Would be really very nice if these could be added to the sensor for the browser.

1 Like

Hello,

Can anyone help me to figure out how to fix this error?
I have this error multiple times when ik reboot my HA. I have reinstalled browser-mod once with hacs. But still keep the error.

> 2020-11-06 08:26:02 ERROR (MainThread) [homeassistant.components.websocket_api.http.connection.547652275360] Error handling message: Unknown error
> Traceback (most recent call last):
>   File "/usr/src/homeassistant/homeassistant/components/websocket_api/connection.py", line 95, in async_handle
>     handler(self.hass, self, schema(msg))
>   File "/config/custom_components/browser_mod/connection.py", line 42, in handle_update
>     devices[deviceID].update(msg.get("data", None))
>   File "/config/custom_components/browser_mod/connection.py", line 83, in update
>     self.sensor = self.sensor or create_entity(
>   File "/config/custom_components/browser_mod/helpers.py", line 47, in create_entity
>     adder = hass.data[DOMAIN][DATA_ADDERS][platform]
> KeyError: 'sensor'

Hi,
Can I use browser_mod on IOs campanion app?

Hello,
Thanks for this awesome mod! A feature was added to force a screen to stay awake, but it doesnā€™t work on my amazon echo show. After 5 minutes of inactivity it still forces the browser to shut down. The echo show has 2 browsers: firefox and Amazonā€™s own Silk, but both close down.

Is there a workaround for this? Or a way to force some background activity to stop it from closing?

Iā€™ve been using Browser Mod for awhile now with a few Nest Hubs. With the latest update, the sensor entity is no longer created - only the media_player & light.

Has anyone else experienced this? And is there a way to regain the functionality associated with the sensor entity?

I have this error multiple times when ik reboot my HA. I have reinstalled browser-mod once with hacs. But still keep the error.

Hello,
Same error on my side, anyone found a solution for this ?

Hey all, is there a possibility to call the mediabrowser card with a tap action for a specific player device?

Hi guys. Iā€™m trying to get this working and somehow I stuck on very beginning:(
I run HA on venv on Rapsberry Pi4 with monitor connected. But I run it by: http://localhost:8123/lovelace/0?kiosk - This gives me a clean view without tabs and unnecessary options visible - just cards and backgroundā€¦ And on this config - it doesnt work - The media player card added to view shows only red color with info that ā€˜there is no such cardā€™ā€¦
However, when I run this by http://localhost:8123/lovelace - so normal mode - it works fine - I can see the card, the ID, I can do blackout (locally and also remotely from another host)ā€¦
Any Idea how to solve it ?