Skip to content

Instantly share code, notes, and snippets.

View andrew-codechimp's full-sized avatar

Andrew Jackson andrew-codechimp

View GitHub Profile
@EverythingSmartHome
EverythingSmartHome / All open windows and doors
Last active October 27, 2025 16:14
A collection of useful templates for Home Assistant dashboards
{{ states.binary_sensor
| selectattr('attributes.device_class', 'in', ['door','window'])
| selectattr('state', 'equalto', 'on')
| list | count }}
@mediacutlet
mediacutlet / HA_Security_Check.yaml
Last active August 9, 2025 02:26
StratoBuilds Security Check Script Example
alias: Security Check
sequence:
- choose:
- conditions:
- condition: template
value_template: "{{ security_query == 'General Security Check | Query Everything' }}"
sequence:
- action: blink.trigger_camera
metadata: {}
data: {}
@andrew-codechimp
andrew-codechimp / calendar.yaml
Last active August 4, 2025 18:53
Octopus free electricity session started
alias: Octopus Energy New Free Energy Session
description: ""
triggers:
- trigger: event
event_type: octopus_energy_new_octoplus_free_electricity_session
conditions: []
actions:
- action: calendar.create_event
metadata: {}
data:
@andersonimes
andersonimes / voicemail.yaml
Last active February 21, 2025 23:42
Blueprint for a Home Assistant voicemail automation for Technithusiast
blueprint:
name: Voicemail Reminder Automation
description: If you have uncompleted items on a to-do list when occupancy is detected, announce it on a speaker.
domain: automation
input:
occupancy_sensor:
name: Occupancy Binary Sensor
description: You can use any sensor as an occupancy sensor as long as it's a binary sensor
selector:
entity:
blueprint:
name: Advanced Appliance Power Monitor
description: |
Monitors the activity of an appliance based on the power it uses (W) after given delays, and triggers actions based on start, running (power usage changed), and stop. You can use the variables
* `{{ elapsed_time }}` (total seconds)
* `{{ elapsed_time_days }}`
* `{{ elapsed_time_hours }}`
* `{{ elapsed_time_minutes }}`
* `{{ elapsed_time_seconds }}`
* `{{ energy_used }}`
blueprint:
name: Add Hildebrand CAD Entities
description: Create devices and entities using MQTT discovery
domain: script
source_url: https://gist.github.com/jamesonuk/079ed3639924e9f373783e5b67f4385d
input:
input_cad_mac:
name: MAC Address
description: "MAC address of CAD (without :s)"
default: ""
//
// ContentView.swift
// AppleLogo
//
// Created by Oskar Groth on 2021-06-17.
//
import SwiftUI
struct ContentView: View {
@jordansinger
jordansinger / AppleLogo.swift
Created June 16, 2021 18:37
Original Apple logo in SwiftUI
import SwiftUI
struct ContentView: View {
var body: some View {
VStack(spacing: 0) {
Color.green
Color.green
Color.green
Color.yellow
Color.orange
@niro1987
niro1987 / zha_ikea_tradfri_2button_remote_brightness.yaml
Last active August 21, 2024 21:07
Home Assistant - Blueprint - ZHA - IKEA TRADFRI - 2 Button Remote - OnOff and Brightness
---
# This automation simulates the use of the IKEA TRADFRI Dimmer control
# connected through ZHA.
# | Button | Action |
# | ----------- | ------------------- |
# | on (short) | Turn the light on |
# | off (short) | Turn the light off |
# | on (long) | Increase brightness |
# | off (long) | Decrease brightness |
@networkingcat
networkingcat / yet_another_motion_automation.yaml
Last active October 21, 2025 13:04 — forked from quallenbezwinger/motion_controlled_scenes_enhanced.yaml
Homeassistant blueprint for motion-activated light scene
blueprint:
name: Yet Another Motion Automation
description: >
# YAMA V10
Turn on lights or scenes when motion is detected.
Four different scenes can be defined depending on time of day.