Skip to content

Instantly share code, notes, and snippets.

View Resinchem's full-sized avatar

Resinchem

View GitHub Profile
@Resinchem
Resinchem / stair_lights.yaml
Last active August 25, 2024 08:27
Home Assistant WLED Stair Lighting
# ==========================================================
# This version is for Home Assistant releases
# 2021.11 or earlier. See the stair_lights_ha_2021_21.yaml
# for all later releases of Home Assistant
3 ==========================================================
# BASEMENT STAIR LED LIGHTING WITH MOTION DETECTION
# LED lighting is auto-on based on motion detection at top and bottom of stairs.
# Initial motion at bottom, lights sequence up the stairs from the bottom.
# Initial motion at top, lights sequence down the stairs from the top.
# Sequence continues until opposite motion detector fires movement, turning lights off.
@Resinchem
Resinchem / washer.yaml
Created January 2, 2021 02:13
Washer Notification
# -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
# Washing Machine Start/Finish
# -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
# input_boolean.notify_washer: turns voice notifications off/on - auto-off from 11 pm - 8 am
# sensor.washer_watts from Sonoff S31 w/Tasmota
- alias: 'Washer State - Start'
trigger:
platform: numeric_state
entity_id: sensor.washer_watts
@Resinchem
Resinchem / dryer.yaml
Created September 11, 2021 12:45
Dryer Notifications
# =====================================
# DRYER State and Notifications
# =====================================
- alias: "Dryer Start"
trigger:
platform: numeric_state
entity_id: sensor.dryer_indicator_on #Top photoresistor
above: 0.75
condition:
condition: template
@Resinchem
Resinchem / garage_lights.yaml
Created October 2, 2021 12:27
Automated Garage Lighting
# =========================
# GARAGE OVERHEAD LIGHTS
# =========================
# Two manual entities (or helpers) are required for these
# automations:
# input_boolean.garage_motion_enable
# timer.garage_motion_time
# ---------------------------------------------------------
# Lights on via manual switch/doors closed (disable automation)
# ---------------------------------------------------------
#===================================
# This version is for Home Assistant
# release 2021.12 or later
#===================================
# BASEMENT STAIR LED LIGHTING WITH MOTION DETECTION
# LED lighting is auto-on based on motion detection at top and bottom of stairs.
# Initial motion at bottom, lights sequence up the stairs from the bottom.
# Initial motion at top, lights sequence down the stairs from the top.
# Sequence continues until opposite motion detector fires movement, turning lights off.
# Defaults to 15 seconds before auto-shutoff if no futher motion detected.
@Resinchem
Resinchem / garage-multisensor.yaml
Created September 16, 2022 16:46
ESPHome Code for Multi-sensor
esphome:
name: garage-multisensor
esp8266:
board: nodemcuv2
# Enable logging
logger:
# Enable Home Assistant API
@Resinchem
Resinchem / custom_button_card_samples.yaml
Created April 7, 2023 21:38
Example Custom Button Card Use - from YouTube video: https://youtu.be/5Pi21pqfbxA
cards:
- type: vertical-stack
cards:
- text: Physical Switches / Lights
type: custom:text-divider-row
- square: false
columns: 4
type: grid
cards:
- aspect_ratio: 1.2/1
@Resinchem
Resinchem / virtual_switch_examples.yaml
Last active April 28, 2024 14:26
Example Home Assistant Virtual Switch Examples as shown in YouTube Video
# ==========================================================
# DASHBOARD YAML
# All examples will need to be edited to use your entity
# names and particular installation.
#
# This dashboard example includes a toggle with conditional
# cards to switch between custom button card and standard
# entities display as shown in the video:
# https://youtu.be/mj2CIKqrQlc
# ==========================================================
@Resinchem
Resinchem / midea-ac-home-assistant.yaml
Last active July 4, 2023 20:11
ESPHome and Home Assistant Code for Midea Window AC local integration and automation
# *******************************************************************************
# This contains the code used in my Midea window air conditioner local
# integration and automation within Home Assistant. It is specific to
# my paricular AC unit and needs. It will likely need to be adapted and
# modified for your own needs and equiment.
#
# This file contains the ESPHome code for the IR transmitter and the FSR
# bed sensor, along with the Home Assistant Helpers and automations. It is
# not meant to be used as a single file, but broken out into ESPHome code and
# other Home Assistant code.
@Resinchem
Resinchem / tag-reader.yaml
Last active November 4, 2023 18:59
ESPHome code for a Home Assistant DIY tag reader
# =========================================================
# This code is a slightly modified version of the original
# by Adonno and contains the modifications for some hardware
# changes.
#
# See the following for build details and use:
# YouTube Video: https://youtu.be/5Xo8yc4tQYc
# Written Blog: https://resinchemtech.blogspot.com/2023/07/nfc-tag-reader.html
# =========================================================