Skip to content

Instantly share code, notes, and snippets.

View ludeeus's full-sized avatar

Joakim Sørensen ludeeus

View GitHub Profile
@ludeeus
ludeeus / test.md
Created October 1, 2017 16:52
test

rest

### Keybase proof
I hereby claim:
* I am ludeeus on github.
* I am ludeeus (https://keybase.io/ludeeus) on keybase.
* I have a public key ASB1U7jYyu0_yhEk75SNq-9jURh6-yHC_UKKlg3TDP7q4Qo
To claim this, I am signing this object:
@ludeeus
ludeeus / install_mosquitto.sh
Last active September 24, 2018 20:02
171272017_mosquitto_fix
#!/bin/bash
function mosquitto-show-short-info {
echo "Mosquitto Installer for Hassbian"
}
function mosquitto-show-long-info {
echo "Installs the Mosquitto package for setting up a local MQTT server"
}
#!/bin/bash
# Must be run as root
git clone https://github.com/ludeeus/custom-component-store.git /tmp/custom-component-store
cd /tmp/custom-component-store/rootfs/opt/store/
sed -i "s,/config,/home/homeassistant/.homeassistant,g" componentstore/const.py
sed -i "s,/config,/home/homeassistant/.homeassistant,g" componentstore/server.py

Breaking change

This had to change because of reasons.
{% 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
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
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()
/*
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');
@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