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

For fully kiosk I recommend not using camera: true. The built in functionality is better in every way.

1 Like

Hello,
I havenā€™t spent much time looking into it so itā€™s still not working for me. Iā€™ll try with the built in functionality as advised when I have some time.

Hey @thomasloven ok.
What do you mean be ā€œbuilt in functionalityā€ how to enable that.

In the mean time I got it to work by using another solution from the deprecated
lovelace-fullykiosk https://github.com/thomasloven/lovelace-fullykiosk#camera.

Hi All,

I have still problems with Fully Kiosk and use it as a media player. When I keep the agent to default the stream I send to it will stop after 30 seconds. When I change the agent to chrome or internet explorer (fake agent) then media player is working correct. But then when selecting tabs of HA it takes so long before they appearā€¦ Moving back then its working again, but then the 30 seconds media player problem is back

Thatā€™s the one. The camera function thatā€™s built in to Fully Kiosk.

Iā€™m using this card for popups. The popup works fine, but on mobile when I press back button to close the popup it goes to the previous page instead of closing the popup. Home assistant Builtin popups work great, maybe this is something possible to fix?

Thanks :slight_smile:

Hi
Is it posible to get deviceID: ā€œthisā€ to work in NodeRed.
I am trying to do some actionable notifications where the service should navigate to a lovelace tab on the device that are using the notification.

{
ā€œnavigation_pathā€: ā€œ/lovelace/1ā€,
ā€œdeviceIDā€: ā€œthisā€
}

The feature works by replacing deviceID: this with deviceID: 12345678-90abcdef in any service call made from the frontend.

I donā€™t know what youā€™re trying to do or how NR works, but I assume NR is somehow listening for a service call, and in that case it should see deviceID: 12345678-90abcdef.

What a powerful tool. I have a an android tablet (a ā€œHudl 2ā€) that is working quite well with browser_mod and the pro version of fully_kiosk.

As for a couple of comments above - the camera isnt working for me - I dont want it for motion detection but as a convenient remote view.

I haveā€¦

browser_mod:
  prefix: "browser_"
  devices:
    73251250-6fb9374d:
      camera: true
      name: browser_hudl

I get the media_player, light and sensor - but not the binary_sensor. And the sensor doesnā€™t show as fully_kioskā€¦

type: browser_mod
last_seen: 2020-01-13T12:21:50.075443
deviceID: 73251250-6fb9374d
path: /lovelace/main_view
visibility: hidden
userAgent: Mozilla/5.0 (Linux; Android 5.1; Hudl 2 Build/LMY47I; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/79.0.3945.116 Safari/537.36
currentUser: Dean Smith
width: 960
height: 600

The camera does work using the generic/web page explicit definition. The remote admin for fully_kiosk showsā€¦

Fully version	1.36.1
Android version	5.1 (SDK 22)
Webview version	79.0.3945.116

Its clearly an old Android version (due to age of tablet) - would this have an impact ?
(Edit: browser_mod ver 15 installed via HACS)

How do I delete device_id's that are no longer available if the browser_mod entities arenā€™t stored to core.entity_registry? I donā€™t have any entries in my SQL database after running the below sql either but the unavailable browser_mod entities continue to appear in the states developer tools.

SELECT * FROM states WHERE entity_id LIKE 'browser%';

Ok, maybe itā€™s because NodeRed doesnt allow this then, if it only works from the frontend.

:man_shrugging: Restart?

this only makes sense in the frontend.

When you click a button in your frontend, that usually sends some kind of service request to the backend (which is where node red lives). The backend runs on your server, and neither knows or cares whether you clicked that button on your computer, phone or toaster. All it knows is that you want a light to turn on.

What browser_mod does is change the way those service calls happen - by modifying the frontend across all devices - such that the parameter deviceID: this is replaced with a unique identifier in the service request, so that the backend can actually know which device it came from.

Then itā€™s up to the backend to react to this information, be it a core script, node red, appdaemon or that C# thing @helto4real is secretly working on. What it will see is a service call, having a parameter named deviceID with a list of deviceIDs as value.

I keep seeing this pluginā€¦ but even though you list use cases for thisā€¦ I canā€™t think of one applicable implementation in my everyday life.

So this means a browser has to be running on the device at all times and pointing to a particular URL that is ā€œlisteningā€ for stuff? Every screen in the house? I donā€™t get that partā€¦ how would you control every screen in your house with a browser?

Any update on this ?

Also, I found another issue. If I use a card which expand when loaded, like calendar card or shopping list card. The popup wonā€™t get centered. Well, when open the popup and it centers, but after some milliseconds the card will refresh and expand itā€™s size, at this time the popup wonā€™t resize aswell.

Example code:

popup_cards:
    input_boolean.shoppinglist:
      title: Shopping list
      card:
        type: shopping-list

Image:

1 Like

Hello, I am using broswer_mod popup to call several cards: entity-row, custom button ā€¦ the problem is that the entities inside the popup cards cannot be clicked, if it is a light, for example, within the pop-up window when the entity is clicked is not open to see the menu for more information. Am I doing something wrong or is it normal?

Have this issue also with basic HA popups. Resize browser will correct the popup into the center.

1 Like

Restarted everything (hass, docker container, server), and refreshed the cache but still seeing browser_mod entities from incognito connections in my states table. How are the browser_mod entities persisted?

They arenā€™t. Thatā€™s the thing. They are created when a browser connects, if they didnā€™t already exist. But they arenā€™t saved.

That said, I donā€™t quite understand persistence of entities fullyā€¦