Skip to content

Instantly share code, notes, and snippets.

View andrew-codechimp's full-sized avatar

Andrew Jackson andrew-codechimp

View GitHub Profile
@andrew-codechimp
andrew-codechimp / gist:82ae1f6b5f2568bef0637871e36c9b72
Created April 11, 2024 12:38
Personal devices battery state card
type: custom:auto-entities
card:
type: custom:battery-state-card
title: Personal Devices
filter:
include:
- integration: battery_notes
domain: sensor
attributes:
device_class: battery
@andrew-codechimp
andrew-codechimp / Assist - Play Notifications.yaml
Last active March 25, 2024 18:35
Home Assistant Play Notifications
alias: Assist - Play Notifications
description: Play notifications list
trigger:
- platform: conversation
command:
- (What are my|Play [my]) notifications
condition: []
action:
- service: todo.get_items
target:
@andrew-codechimp
andrew-codechimp / add_unique_todo.yaml
Last active April 22, 2024 09:40
Home Assistant - Add unique to-do item
alias: Add unique to-do
mode: single
icon: mdi:clipboard-list
sequence:
- service: todo.get_items
target:
entity_id: "{{ list }}"
data:
status: needs_action
response_variable: mylistneedsaction
@andrew-codechimp
andrew-codechimp / esphm5matrix.yaml
Created January 26, 2024 15:15
M5 Matrix EspHome example
# M5 Atom Matrix Configuration for m5atom01 which is an M5Stack Atom Matrix
# ESP32 Pico, 8x8 RGB LED Matrix (WS2812C), Infra-red LED,
# MPU6886 Inertial Sensor - 6-axis attitude sensor with 3-axis gravity accelerometer and 3-axis gyroscope
# Pins/GPIO
#
# === M5Stack Atom Matrix Specific ===
# @see https://github.com/m5stack/M5Stack/blob/31be29f3f743768778accb8d5f308583ba4d3d4c/src/utility/Config.h
# @see https://docs.m5stack.com/#/en/core/atom_matrix
# ------ Buttons ------
@andrew-codechimp
andrew-codechimp / zigbee2mqtt_moes_4switch.yaml
Last active August 21, 2023 15:30
Home Assistant Blueprint Zigbee2MQTT Moes 4 Button Scene Switch
blueprint:
name: Zigbee2MQTT Moes 4-Button Scene Switch
description: Automate your Moes 4-Button Scene Switch via Zigbee2MQTT.
domain: automation
source_url: https://gist.github.com/andrew-codechimp/82a317a2fd4c22fce66eeba1192d026a
input:
switch:
name: Moes 4-Button Scene Switch
description: Moes 4-Button Scene Switch to use
selector:
@andrew-codechimp
andrew-codechimp / energy.yaml
Created July 12, 2023 11:14
Hildebrand Glow Home Assistant Sensors
mqtt:
sensor:
- name: "IHD Software Version"
unique_id: "smart_meter_software_version"
state_topic: !secret glow_state_topic
entity_category: "EntityCategory.DIAGNOSTIC"
value_template: "{{ value_json['software'] }}"
icon: "mdi:information-outline"
entity_category: diagnostic
device:
@andrew-codechimp
andrew-codechimp / Pixel Clock Buttons.yaml
Last active March 14, 2023 09:03
EsphoMatrix Automation Examples
alias: Pixel Clock Andrew Buttons
description: ""
trigger:
- platform: state
entity_id:
- binary_sensor.esphpixelclock01_middle_button
id: middle_button
to: "on"
condition: []
action:
@andrew-codechimp
andrew-codechimp / esphplug01.yaml
Created November 17, 2022 10:07
Gosund SP111 Smart Plug ESPHome
#
# gosund sp111 smart plug with power sensor
#
substitutions:
devicename: esphplug01
upper_devicename: EsphPlug01
# WiFi connection
wifi:
ssid: !secret wifi_ssid
@andrew-codechimp
andrew-codechimp / 5060831P7.js
Created November 16, 2022 10:05
Zigbee2MQTT Convertor for Hue Centris Light
const fz = require('zigbee-herdsman-converters/converters/fromZigbee');
const tz = require('zigbee-herdsman-converters/converters/toZigbee');
const exposes = require('zigbee-herdsman-converters/lib/exposes');
const reporting = require('zigbee-herdsman-converters/lib/reporting');
const ota = require('zigbee-herdsman-converters/lib/ota');
const globalStore = require('zigbee-herdsman-converters/lib/store');
const utils = require('zigbee-herdsman-converters/lib/utils');
const e = exposes.presets;
const ea = exposes.access;
@andrew-codechimp
andrew-codechimp / zigbee2mqtt_hue_wall_switch_module.yaml
Last active November 16, 2022 09:57
Home Assistant Blueprint - Zigbee2MQTT Hue Wall Switch Module
blueprint:
name: Zigbee2MQTT Hue Wall Switch Module
description: 'Controller automation for executing any kind of action triggered by a Philips Hue Wall Switch Module.'
domain: automation
input:
switch:
name: Switch
description: The action sensor of the controller to use for the automation.
default: ''