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();
}
@adrianslabu
adrianslabu / 01. Youtube - How to Integrate Valetudo with Home Assistant
Last active August 25, 2025 17:36
Youtube - How to Integrate Valetudo with Home Assistant
# READ THIS FIRST #
File names match the video timestamps, so you can easily find the code for a specific moment in the video.