Skip to content

Instantly share code, notes, and snippets.

@dilruacs
dilruacs / chlorinator_orp_control.yaml
Last active June 16, 2025 11:18
Pool Chlorinator ORP Control
blueprint:
name: Pool Chlorinator ORP Control
description: >-
Controls a pool chlorinator (e.g. salt water electrolysis) based on ORP levels
and user-defined mode (blocked, forced, automated).
domain: automation
input:
orp_sensor:
name: ORP Sensor
selector:
@dilruacs
dilruacs / pump_smart_control.yaml
Last active June 18, 2025 08:34
Pool Pump Smart Control
blueprint:
name: Pool Pump Smart Control
description: >
Automation to manage a pool pump based on filtration progress, solar surplus,
device dependencies, and user override modes.
domain: automation
input:
pump_switch:
name: Pool Pump Switch
selector:
@dilruacs
dilruacs / pool_pump_auto_off.yaml
Last active May 22, 2025 15:57
Pool Pump Auto-Off Based on Daily Filtered Liters
blueprint:
name: Pool Pump Auto-Off Based on Daily Water Usage (Input Helpers)
description: >
Turns off the pool pump once the daily water filtration goal is reached.
Uses values from input_number helpers as source of truth.
Requires a sensor that tracks daily filtered liters and resets at midnight.
domain: automation
input:
filtered_liters_sensor:
name: Daily Filtered Liters Sensor
@dilruacs
dilruacs / climate_door_window.yaml
Last active November 30, 2024 10:47
Turn heating on/off when a door or window opens or closes
blueprint:
name: Control Climate with Door-Window Sensor
description: Turn heating on/off when a door or window opens or closes
domain: automation
source_url: https://gist.github.com/dilruacs/357ed8bc9934ebe2d8ff75c2484c0cff
input:
door_window_sensor:
name: Door/Window Sensor
description: This sensor detects if a door or window is opened or closed
selector:
blueprint:
name: CO2 Ampel
description: >
Changes a light's color based on CO₂ levels: green (OK), yellow (Warning), red (Critical).
Optionally links the light state to another entity.
domain: automation
input:
co2_sensor:
name: CO₂ Sensor
description: The sensor that reports the CO₂ value (ppm).