NemesisRE / kiosk-mode

🙈 Hides the Home Assistant header and/or sidebar
MIT License
403 stars 16 forks source link

[SETUP HELP] Integration error: kiosk_mode - Integration 'kiosk_mode' not found. #309

Open DAE51D opened 20 hours ago

DAE51D commented 20 hours ago

I swear this Kiosk Mode did work a while ago when I first installed it, but now since HACS 2.0 or something when I uncommented the code I had (working before) it doesn't now...

Integration error: kiosk_mode - Integration 'kiosk_mode' not found.

image

I've tried with both of these lines in my /homeassistant/configuration.yaml (and a few other permutations) to no avail

frontend:
  themes: !include_dir_merge_named themes
  extra_module_url:
    - /hacsfiles/kiosk-mode/kiosk-mode.js?v6.4.0
    # - /config/www/community/kiosk-mode/kiosk-mode.js?v6.4.0

kiosk_mode:
  user_settings:
    - users:
        - "airbnb"
      hide_sidebar: true
      kiosk: true
      ignore_entity_settings: true

I've even tried re-downloading, and uninstalling and re-installing in case... always this same error as above.

Additionally if I look at the actual file system, I can see the files in /config/www/community/kiosk-mode and I do NOT see /hacsfiles (or a symlink or anything, should there be??) image

elchininet commented 20 hours ago

Hi @DAE51D,

Kiosk-mode is not an integration but a JavaScript plugin. You cannot put the kiosk_mode config into your configuration.yaml but into your dashboard config. Consult the section Simple config example:

YAML mode users need to add the configuration manually to the lovelace dashboard file in which they want to enable kiosk-mode. Non-YAML users (Storage Mode) need to add the configuration to each lovelace panel going to Edit dashboard option (pencil icon on the top-right of the screen). Once in Edit Dashboard mode, click on the top-right three-dots button and select Raw configuration editor.

Just move the config from your configuration.yaml to your dashboard configuration.

I've tried with both of these lines in my /homeassistant/configuration.yaml (and a few other permutations) to no avail

As the documentation states:

Follow only one of two installation methods below, HACS or Manually.

Chose only one installation method, if you install the plugin through HACS and you are in storage mode (default mode), that's it. You only need to add the resource in your configuration.yaml if you install the plugin manually or if you are in yaml mode.

and I do NOT see /hacsfiles (or a symlink or anything, should there be??)

hacsfiles is just an alias not a physical folder, it is normal that you cannot see it in your filesystem.