Page tree

Welcome to FreeSoftwareServers Confluence Wiki

Skip to end of metadata
Go to start of metadata

https://github.com/thomasloven/hass-browser_mod

Download Master Zip and Copy the contents of custom_components/browser_mod/ to <your config dir>/custom_components/browser_mod/

https://github.com/thomasloven/hass-browser_mod/archive/master.zip

Note about camera feature!

The camera does not work well with Fully Kiosk Browser. If you're using FKB, use the built-in camera functionality instead. It's better in every way.

I will be using FKB, so I'll be leaving this option out!

      camera: true

Note about "blackout" feature

Note: This will not turn off your screen backlight. Most screens will still emit light in a dark room.

I will be attempting to use this in FKB, stay tuned.

moving on...

Add this to configuration.yaml then log out of a current session if needed and reboot/restart HA:

browser_mod:
  prefix: "browsermod_"
  resources:
  - url: /browser_mod.js
    type: module
  #devices:
    #99980b13-dabc9563:
      #name: arrakis
  #disable:
  #  - all

This will allow you to find devices under "devices" in the UI, prefixed with "browsermod_" and then assign an alias!

I'm going to find one specific device and then adjust mine to not add new devices for each session, as I only need this for my "kiosk":

Eg:

browser_mod:
  prefix: "browsermod_"
  resources:
  - url: /browser_mod.js
    type: module
  devices:
    f732772e-ab2edddf:
      #name: freesoftwareservers_browsermod
      name: bmodalias
  disable:
    - all

I then rebooted and nothing was available... so I removed "disable all" and tested again via reboot.

I tried using "name: bsmodalias" as it was shorter without "_". That worked, so I don't know the exact params, but keep your alias short & simple!

More Notes: I had issues "doing something" because I had a the wrong device-ID. Make sure to set alias ASAP and disable all. As well, note that device id may need "-" or "_" depending on where you are working.

Great, now lets do something!

I'm going to use the UI to call the navigate service and change display.

Great, but I want to open a camera entity! And script this, if you haven't setup scripts see here. Split Scripts into Multiple Files in Directory with Home-Assistant

Here is my script to open my camera card. I originally was going to add wait/close etc, but really, you want it open untill XYZ which should be handled in the automation, not this script.

  bmodmore_info:
   sequence:
   - service: browser_mod.more_info
     data:
       entity_id: camera.camera_name_example
       large: true
       deviceID:
       - bmodalias

ToDo: Add Playing Mp3 and Incoming Audio from Camera

  • No labels