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
alias: test of dryer current sense
description: ""
triggers:
- trigger: numeric_state
entity_id:
- sensor.dryer_power_produced_energy
attribute: current
below: 0.05
conditions: []
actions:
@SirGoodenough
SirGoodenough / Episode 124
Last active November 16, 2024 02:57
Automations attached to my Youtube Episode 124 Tuya Lights in Home Assistant
### The All Off Toggle I did in the video:
- id: '1729450027538'
alias: Toggle Basement Middle area
description: On and off the 4 basement light middle area
triggers:
- trigger: state
entity_id:
- light.see_basement_switch_switch_3
@SirGoodenough
SirGoodenough / Episode107
Last active June 1, 2024 15:49
Episode 107 Zigbee Hose Valve Automation Video
>>> Compensation Integration Yaml Code:
(See Home Assistant Docs Here: https://www.home-assistant.io/integrations/compensation/)
sprinkler_time:
unique_id: f7e5d58f-2fa6-49cd-ab12-feb95cb64490
source: sensor.gw2000b_v2_2_4_daily_rain_rate_piezo
# Ensure that the sensor's value will not have a state lower than -60.0
# when the source sensors value is less than 0.01
lower_limit: true
# Ensure that the sensor's value will not have a state greater than 0.0
# when the source sensors value is greater than .25
@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