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 / automation_octopus_energy_new_free_energy_session.yaml
Last active October 7, 2025 09:04
Octopus Free Electricity Calendar Events
alias: Octopus Energy New Free Energy Session
description: ""
triggers:
- event_type: octopus_energy_new_octoplus_free_electricity_session
trigger: event
conditions:
- condition: template
value_template: "{{ as_datetime(trigger.event.data.event_start) > now() }}"
alias: Is in the future
actions:
@andrew-codechimp
andrew-codechimp / mealie.yaml
Created August 12, 2025 09:42
HA Mealie get meal plans for today and tomorrow
template:
- trigger:
- platform: time_pattern
minutes: /10
action:
- action: mealie.get_mealplan
data:
config_entry_id: "YOUR_MEALIE_CONFIG_ENTITY_ID"
response_variable: result
sensor:
@andrew-codechimp
andrew-codechimp / awtrix_app.yaml
Created January 14, 2025 11:51
Awtrix Home Assistant Scripts
sequence:
- variables:
awtrix_topic: >-
{{ states((device_entities(awtrix_device) |
select('search','device_topic') | list)[0]) }}
- action: mqtt.publish
metadata: {}
data:
topic: "{{awtrix_topic}}/custom/{{app_name}}"
payload: |-
@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:
@andrew-codechimp
andrew-codechimp / example_call.yaml
Last active May 15, 2024 12:11
Home Assistant Add to Mealie List
service: rest_command.mealie_add_to_groceries
data: {
note: "Butter"
}
@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 / 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: