Skip to content

Instantly share code, notes, and snippets.

View dale3h's full-sized avatar

Dale Higgs dale3h

View GitHub Profile
@dale3h
dale3h / ha-sidebar-concealer.user.js
Last active November 8, 2020 02:42
[Userscript] Home Assistant Sidebar Concealer
// ==UserScript==
// @name Home Assistant Sidebar Concealer
// @namespace https://dale3h.com
// @version 0.1.0
// @icon https://raw.githubusercontent.com/home-assistant/assets/master/logo-round.svg
// @match https://example.duckdns.org/a0d7b954_vscode*
// @match https://example.duckdns.org/a0d7b954_adguard*
// ==/UserScript==
let counter = 0;
@dale3h
dale3h / example.conf
Created November 8, 2020 03:11
[Shell] SSHFS Mount Utilities
remote_user=pi
remote_host=192.168.1.100
remote_path=/home/pi
remote_port=22
@dale3h
dale3h / custom-quickbar.js
Last active August 26, 2021 17:57
[Home Assistant] Lovelace Custom QuickBar Commands
customElements.whenDefined("ha-quick-bar").then(() => {
const fireEvent = (node, type, detail, options) => {
options = options || {};
detail = detail === null || detail === undefined ? {} : detail;
const event = new Event(type, {
bubbles: options.bubbles === undefined ? true : options.bubbles,
cancelable: Boolean(options.cancelable),
composed: options.composed === undefined ? true : options.composed,
});
event.detail = detail;
@dale3h
dale3h / automations.yaml
Created December 2, 2020 18:15
[Home Assistant] Restart Time
################################################################
# Automations / Restart Time
# Publish timestamps to MQTT broker on start and shutdown.
################################################################
- id: restart_time_start
alias: Publish Start Time
description: Publish current timestamp to MQTT broker on startup.
mode: single
trigger:
@dale3h
dale3h / configuration.yaml
Created March 3, 2023 09:53
[Home Assistant] Verizon MiFi Jetpack 8800L
# IMPORTANT: Enable the package in `configuration.yaml`
# @see https://www.home-assistant.io/docs/configuration/packages/
# Option 1: Include all files inside `config/packages` as package files:
homeassistant:
packages: !include_dir_named packages
# Option 2: Use `packages/jetpack_8800l.yaml` file directly from `config/packages` folder:
homeassistant:
packages: