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
View node_15.json
{
"id": 15,
"name": "Porch Freezers",
"loc": "outside",
"values": [
{
"id": "15-37-0-targetValue",
"nodeId": 15,
"toUpdate": false,
"commandClass": 37,
@SirGoodenough
SirGoodenough / cube_volume_test_1.yaml
Last active July 25, 2023 04:24
Test cube volume control
View cube_volume_test_1.yaml
blueprint:
name: volume_control_4_magic_cube_and_other_things - 2023-07-23
author: SirGoodenough
domain: script
homeassistant:
min_version: 2023.3.0
source_url: https://gist.github.com/SirGoodenough/b244809ff4f220f3db9927bd7f09776c
description: >
This script was invented to be used with my Magic Cube Blueprints. I released
it as a standalone Script Blueprint because because of requests to extend the
View 82-mount-sata-to-media-by-label-movies.rules
#
# 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
View 80-mount-usb-to-media-by-label.rules
#
# 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
View 81-mount-sata-to-media-by-label-music.rules
#
# 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
View ssh.md

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

@SirGoodenough
SirGoodenough / aaatestfan.yaml
Created December 26, 2022 07:51
Testing a blueprint
View aaatestfan.yaml
blueprint:
name: Auto_Fan_test
description: 'This sets the fan speed for a 3 speed fan (such as an IFAN03/IFAN04)
based on a room temperature.
In fact any fan with 3 speeds designated in MQTT [as 0,1,2,3) will work with this
blueprint.