Skip to content

Instantly share code, notes, and snippets.

View Resinchem's full-sized avatar

Resinchem

View GitHub Profile
@Resinchem
Resinchem / analog-clock-leds.yaml
Last active July 28, 2024 12:54
ESPHome Code for MCP23017 Port Expander breadboard test as shown in the YouTube video: https://youtu.be/GyHiSyoyk_0
# ===============================================================
# 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
@Resinchem
Resinchem / mqtt_discovery.cpp
Last active July 12, 2025 10:54
Sample Arduino code for publishing devices using Home Assistant MQTT Discovery. See the following for use case: https://youtu.be/VHiCtZqllU8 or https://resinchemtech.blogspot.com/2023/12/mqtt-auto-discovery.html
/* ===================================================================
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
@Resinchem
Resinchem / APDS9960_Example.yaml
Last active July 19, 2025 12:00
APDS-9960 Example ESPHome configuration used in this YouTube video: https://youtu.be/KhrSYPcA0gc
esphome:
name: apds9960-test
friendly_name: apds9960-test
esp32:
board: esp32dev
framework:
type: esp-idf
# Enable logging
logger:
@Resinchem
Resinchem / custom_panel.yaml
Created February 23, 2026 11:51
Add Developer Tools back to Home Assistant Side Bar
# Add DevTools back to Sidebar
panel_custom:
- name: panel_develop
sidebar_title: Developer Tools
sidebar_icon: mdi:hammer
url_path: 'config/developer-tools'
module_url: /api/hassio/app/entrypoint.js
embed_iframe: true
require_admin: true