Skip to content

Instantly share code, notes, and snippets.

@adrianslabu
adrianslabu / 1. fan.yaml
Last active November 20, 2025 21:30
03. Youtube - Turn a regular FAN into a SMART fan
esphome:
name: fan-gym
friendly_name: Fan Gym
on_boot:
- if:
condition:
switch.is_off: child_lock
then:
- lambda: |-
if (id(switch_rotation).state) { id(rotation).turn_on(); }
@adrianslabu
adrianslabu / dehumidifier.yaml
Created September 16, 2025 20:41
02. Youtube - Turn ANY Device into a Smart Device with ESP8266
esphome:
name: dehumidifier
friendly_name: Dehumidifier
on_boot:
priority: -100
then:
- lambda: |-
if (id(state).state) {
id(button_power).press();
}
@kaczmar2
kaczmar2 / pihole-v6-letsencrypt-cloudflare.md
Last active December 5, 2025 17:16
Automating SSL Certificate Renewal for Pi-hole v6 (acme.sh + Cloudflare)

Pi-hole v6: Automating Let's Encrypt SSL Renewal with Cloudflare DNS

See my other guides for SSL certificates on Pi-hole v6:

Overview

Pi-hole v6 introduces changes to its web server:

  • Embedded Web Server – Pi-hole no longer relies on lighttpd.
@Elwell
Elwell / waqi_upload.py
Last active February 9, 2025 15:28
send Home Assistant PM sensors to WAQI
#!/usr/bin/env python3
# Script to extract sensor values from home assistant and republish to WAQI
# Andrew Elwell. Feb 2025. Apache 2.0 licence.
# IMPORTANT - You *WILL* need to update waqi_token, ha_token and ha_url to suit your installation.
# see https://aqicn.org/data-feed/upload-api/ for WAQI
# and https://developers.home-assistant.io/docs/auth_api/#long-lived-access-token for HA
import requests
@letsautomatenet
letsautomatenet / ESPHome YAML Template - ESP32.yaml
Created January 13, 2024 18:32
ESPHome YAML Template - ESP32
### START - Update this section with relevant details ###
substitutions:
device_name: "device-name-here"
friendly_name: Device Name Here
board_type: esp32dev
framework: esp-idf # arduino or esp-idf (recommended for ESP32)
# ESPHome API used by Home Assistant, etc
@letsautomatenet
letsautomatenet / BME680 Air Quality Sensor.yaml
Created December 27, 2023 15:24
BME680 Air Quality Sensor
esphome:
name: bme680
friendly_name: Air Quality Sensor
esp8266:
board: d1_mini
# Enable logging
logger:
@Blackshome
Blackshome / bathroom-humidity-exhaust-fan.yaml
Last active December 7, 2025 18:36
bathroom-humidity-exhaust-fan.yaml
blueprint:
name: Bathroom Humidity Exhaust Fan
description: >
# 🚿 Bathroom Humidity Exhaust Fan
**Version: 2.6**
Step into the future of freshness - customize it your way and experience the convenience of automated humidity control! 🌿🚿
@ychaouche
ychaouche / Spamassassin rules description
Last active November 7, 2025 21:20
Spamassassin rules description
Note:
to keep this list automatically updated,
I turned it into a repo which is automatically updated via cron.
see https://github.com/ychaouche/spamassassin-rules-description
AC_BR_BONANZA Too many newlines in a row... spammy template
ACCESSDB Bericht zou gevangen zijn door accessdb
ACCESSDB Ce message aurait �t� bloqu� par accessdb
ACCESSDB Mensagem teria sido pega pela accessdb
ACCESSDB Message would have been caught by accessdb
@akhdaniel
akhdaniel / make a Docker container start automatically on system boot.md
Last active November 20, 2025 14:58
make a Docker container start automatically on system boot

create systemctl service file

vim /etc/systemd/system/docker-odoo.service

file content is

Pi-hole Regex Blocklist

These are my personal regex blocks that I use in my pi-hole instance. I'm publicizing them in the event they may be useful for other people.

TLD blocks

(\.|^)cn$	
(\.|^)ru$

Regex list from mmotti/pihole-regex