Skip to content

Instantly share code, notes, and snippets.

Avatar

Tatham Oddie tathamoddie

View GitHub Profile
@tathamoddie
tathamoddie / Post Notification.yaml
Last active January 12, 2023 23:38 — forked from andrew-codechimp/Post Notification.yaml
Home Assistant Post Notification Example
View Post Notification.yaml
alias: Post Notification
description: ""
mode: restart
trigger:
- platform: state
entity_id:
- binary_sensor.z2maqarareed01_contact
from: "on"
to: "off"
for:
View washing.yaml
alias: "[Washing] Done"
description: ""
trigger:
- platform: numeric_state
entity_id: sensor.washing_machine_power
for:
hours: 0
minutes: 0
seconds: 0
above: "500"
View roller-door.yaml
substitutions:
device_name: roller-door
friendly_name: Roller Door
## Board config
esphome:
name: ${device_name}
platform: ESP32
board: m5stack-core-esp32
View 0-home.yaml
## ui-views/0-home.yaml
title: Home
path: home
icon: mdi:home
badges:
- sun.sun
- sensor.moon
- person.matt
- person.tats
@tathamoddie
tathamoddie / Run-Simulation.ps1
Created July 30, 2022 07:06
Run a solar and battery simulation using real historical data
View Run-Simulation.ps1
<#
.SYNOPSIS
Run a solar and battery simulation using real historical data
.DESCRIPTION
Combines real usage data from Powershop's export format, in 30-minute buckets,
with real regional solar performance data from https://pv-map.apvi.org.au/live,
in 15-minute buckets, to simulate the effectiveness of a solar and battery system.
.EXAMPLE
.\Run-Simulation.ps1 `
-PeakGeneration 5.46 `
View automations.yaml
- alias: 'Washing Done'
mode: restart
trigger:
- platform: numeric_state
entity_id: sensor.washing_machine_power
above: 0
for:
minutes: 5
action:
- wait_for_trigger:
View powerpal_gateway.yaml
substitutions:
device_name: powerpal-gateway
friendly_name: Powerpal Gateway
esphome:
name: ${device_name}
platform: ESP32
board: m5stack-core-esp32
wifi:
@tathamoddie
tathamoddie / configuration.yaml
Last active January 9, 2022 21:48
Home Assistant Australian RAT Finder
View configuration.yaml
# Per https://www.home-assistant.io/docs/configuration/packages/#create-a-packages-folder
homeassistant:
packages: !include_dir_named packages
View air_monitor_indoor.yaml
# Used with ESPHome. See https://tatham.blog/2020/08/30/esphome-nothing-to-firmware-in-30-minutes/
## Commom pieces of text we'll re-use later
# (makes it easier to copy and paste all of this code for another value later,
# because you only have to set the new name at the top of the file)
substitutions:
device_name: air_monitor_indoor
friendly_name: Air Monitor Indoor
area: Indoor
View demo_deepsleep.yaml
substitutions:
device_name: demo_deepsleep
friendly_name: Demo Deep Sleep
## Board config
esphome:
name: ${device_name}
platform: ESP32
board: m5stack-core-esp32