This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* =================================================================== | |
SAMPLE CODE Segments for Home Assistant MQTT Discovery | |
This is NOT complete code but shows an example of generating a unique ID | |
for topic/entity publishing based on the device MAC address. | |
It also includes sample code for creating a Home Assistant device with four | |
entities via MQTT Discovery, as shown here: | |
Video: https://youtu.be/VHiCtZqllU8 | |
Blog: https://resinchemtech.blogspot.com/2023/12/mqtt-auto-discovery.html | |
It is highly recommended that you include some sort of end-user accessible setting to |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# =============================================================== | |
# Code used in the breadboard test for the MCP23017 Port Expander | |
# as shown in this YouTube Video: https://youtu.be/GyHiSyoyk_0 | |
# =============================================================== | |
esphome: | |
name: analog-clock-leds | |
friendly_name: analog-clock-leds | |
esp8266: | |
board: d1_mini |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# ========================================================= | |
# 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 | |
# ========================================================= |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# ******************************************************************************* | |
# 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. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# ========================================================== | |
# 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 | |
# ========================================================== |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
esphome: | |
name: garage-multisensor | |
esp8266: | |
board: nodemcuv2 | |
# Enable logging | |
logger: | |
# Enable Home Assistant API |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#=================================== | |
# 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. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# ========================= | |
# 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 file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# ===================================== | |
# 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 |
NewerOlder