Skip to content

Instantly share code, notes, and snippets.

View SirGoodenough's full-sized avatar
🏠
Working from home

James Chaloupka SirGoodenough

🏠
Working from home
View GitHub Profile
@SirGoodenough
SirGoodenough / node_15.json
Last active October 30, 2023 22:21
NewOne N4013 Zwave Plug
{
"id": 15,
"name": "Porch Freezers",
"loc": "outside",
"values": [
{
"id": "15-37-0-targetValue",
"nodeId": 15,
"toUpdate": false,
"commandClass": 37,
#
# udev rule
# Mount internal drive to the media directory using the partition name as mount point
#
# Description:
# Created for Home Assistant OS, this rule mounts an internal drive (SATA/NVME)
# into the Hassio media directory (/mnt/data/supervisor/media).
# When a internal drive is connected to the board, the rule creates one directory
# per partition under the media directory. The newly created partition is named
# as the following
@SirGoodenough
SirGoodenough / 80-mount-usb-to-media-by-label.rules
Last active June 20, 2023 05:55 — forked from eklex/80-mount-usb-to-media-by-label.rules
udev rule for Home Assistant OS (hassio) to mount USB drives into the Supervisor Media directory
#
# udev rule
# Mount USB drive to the media directory using the partition name as mount point
#
# Description:
# Created for Home Assistant OS, this rule mounts any USB drives
# into the Hassio media directory (/mnt/data/supervisor/media).
# When a USB drive is connected to the board, the rule creates one directory
# per partition under the media directory. The newly created partition is named
# as the partition name. If the partition does not have a name, then the following
@SirGoodenough
SirGoodenough / 81-mount-sata-to-media-by-label-music.rules
Last active June 5, 2023 04:10 — forked from Deckoz2302/81-mount-sata-to-media-by-label.rules
udev rule for Home Assistant OS (hassio) to mount internal drives into the Supervisor Media directory
#
# udev rule
# Mount internal drive to the media directory using the partition name as mount point
#
# Description:
# Created for Home Assistant OS, this rule mounts an internal drive (SATA/NVME)
# into the Hassio media directory (/mnt/data/supervisor/media).
# When a internal drive is connected to the board, the rule creates one directory
# per partition under the media directory. The newly created partition is named
# as the following
@SirGoodenough
SirGoodenough / ssh.md
Last active January 17, 2023 07:15
Suggested markdown for creation of encryption for backup addon

One suggested way to install ssh encryption for this addon

Generate a key

Open a terminal in HA using one of the terminal addons, the Code Server (VSCode) addon, or from the front end of HA pi, etc. Note Home Assistant OS and Supervised mode use the folder /ssl to store the encryption files in. This replaces the ~/.ssh folder many Linux distro's use.

At the terminal prompt:

cd ~/ssl

ssh-keygen -f ~/ssl/something-unique-ed25519 -t ed25519