Skip to content

Instantly share code, notes, and snippets.

View ludeeus's full-sized avatar

Joakim Sørensen ludeeus

View GitHub Profile
@ludeeus
ludeeus / sidebarmanagement.js
Last active April 18, 2020 14:31
Home Assistant Sidebar Access Management
/*
Use the format "panel-name" (from URL), and a list of user names
In this example if the username "hidden" does not exist, no one will see these entries.
All entries not in the UserAccess list are not modified.
NB!: This will only hide the sidebar entry, if the user have the direct URL to the panel they still will be able to see it.
Place it as /www/sidebarmanager.js
And include it in configuration.yaml like this:
frontend:
extra_module_url:
- /local/sidebarmanager.js
@ludeeus
ludeeus / .HA Frontend & Core devcontainer.md
Last active October 24, 2023 00:15
Devcontainer for Home Assistant Frontend & Core

Yeah yeah yeah I know.... but it works...

Usage:

  1. Create a new directory on your computer
  2. In that directory create a directory called '.devcontainer'
  3. Place both the initand the devcontainer.json files from this gist in that directory
  4. Open VS Code in the directory you created and enjoy
  5. Inital starup will take some time since it clones both the repositories and install the requirements to run them.
@ludeeus
ludeeus / pause_media_during_calls.yaml
Last active December 15, 2020 09:55
Home Assistant Blueprint: Pause Playing Media During Calls
blueprint:
name: Pause Playing Media During Calls
description: >
Automatically pause the playing media when you get a call!
Currently this only works with the Home Assistant Companion app for Android.
domain: automation
input:
phone_state_sensor:
name: Phone state sensor
@ludeeus
ludeeus / tests_blueprint.yaml
Last active February 3, 2024 14:43
blueprint test
blueprint:
name: Pause Playing Media During Calls
description: >
Automatically pause the playing media when you get a call!
Currently this only works with the Home Assistant Companion app for Android.
domain: automation
input:
update_entity:
name: Update entities