Skip to content

Instantly share code, notes, and snippets.

View ludeeus's full-sized avatar

Joakim Sørensen ludeeus

View GitHub Profile
@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
@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 / .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 / 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
/*
Idea stolen from https://gist.github.com/thomasloven/2a37152725c582fec4420ecedb65ebe3
Add this to your configuration.yaml
frontend:
extra_module_url:
- /local/ThemeOverride.js
And put the following into <config-dir>/www/ThemeOverride.js
*/
document.documentElement.style.setProperty('--ha-card-border-radius', '20px');
Unable to find configuration. Creating default one in /workspaces/home-assistant-dev/./config
Traceback (most recent call last):
File "/usr/local/bin/hass", line 11, in <module>
load_entry_point('homeassistant', 'console_scripts', 'hass')()
File "/workspaces/home-assistant-dev/homeassistant/__main__.py", line 399, in main
exit_code = asyncio_run(setup_and_run_hass(config_dir, args))
File "/usr/local/lib/python3.7/asyncio/runners.py", line 43, in run
return loop.run_until_complete(main)
File "/usr/local/lib/python3.7/asyncio/base_events.py", line 579, in run_until_complete
return future.result()
resources:
- url: /community_plugin/lovelace-multiple-entity-row/multiple-entity-row.js
type: js
title: Home
views:
- path: default_view
title: Home
cards:
- type: entities
title: multiple-entity-row
@ludeeus
ludeeus / Autoconvert Lovelace configuration to YAML.md
Last active November 17, 2021 14:13
Autoconvert Lovelace configuration to YAML
We couldn’t find that file to show.
{% linkable_title Recommendations %}
Below is a list of minumum requirements the host should meet for any of these installation options.
Type | Recommendation
-- | --
Storrage | 32 GB
Memory | 1 GB
Network | Cable
Power (if SOC) | At least 2.5A

Breaking change

This had to change because of reasons.