A blueprint to use a Zooz ZEN32 Scene Controller to control an exhaust fan.
You can also see the discussion about this Blueprint in the Home Assistant Community Blueprint Exchange.
- Timer entity to track time remaining for the exhaust fan
- Switch entity to turn the fan on/off (can be the scene controller if wired that way)
- Device for the scene controller.
┌────────────────────────────────────┐
│ │
│ ┌─┐ Blue when off │
│ └─┘ White w/ time left > 45m │
│ Green when on w/ no time set │
│ │
│ │
│ │
│ │
│ │
│ │
│ │
│ │
│ │
│ 60m/off │
└────────────────────────────────────┘
┌────────────────┐ ┌────────────────┐
│ White w/ │ │ White w/ │
│ ┌─┐ time left │ │ ┌─┐ time left │
│ └─┘ <= 10m │ │ └─┘ > 20m and │
│ │ │ <= 30m │
│ │ │ │
│ │ │ │
│ 10m │ │ 20m │
└────────────────┘ └────────────────┘
┌────────────────┐ ┌────────────────┐
│ White w/ │ │ White w/ │
│ ┌─┐ time left │ │ ┌─┐ time left │
│ └─┘ > 20m and │ │ └─┘ > 30m and │
│ <= 30m │ │ <= 45m │
│ │ │ │
│ │ │ │
│ 30m │ │ 45m │
└────────────────┘ └────────────────┘
python3.10 -m venv .venv
source .venv/bin/activate
# Install Requirements
pip install -r requirements.txt
# One-Time Install of Commit Hooks
pre-commit install
Tests are run with pytest
.