Skip to content

asucrews/ha-blueprints

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

893 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ha-blueprints

Home Assistant blueprints and helper package generators.

This repository currently centers on a WITB+ occupancy/action workflow plus related automation and script blueprints:

  • Occupancy inference for enclosed rooms (WITB+ v4)
  • Occupancy inference for transit areas / hallways (WITB Transit Room Driver v1)
  • Bedroom sleep guard to prevent false vacancy while in bed (WITB+ Bed → Force Occupied v1)
  • Actions control for lights/fan (WITB+ Actions - Lights + Fan)
  • Bathroom fan control from humidity delta (Bathroom Fan From Humidity Delta)
  • Vacuum Job Manager automation for iRobot jobs + helper state + optional WITB overrides
  • Optional resilient light hook scripts for VZW31-SN smart-bulb setups

Quick Links

Active Blueprint Files

  1. blueprints/automation/witb_plus/v4/witb_plus.yaml

  2. blueprints/automation/witb_plus_actions_lights_fan/v2/witb_plus_actions_lights_fan.yaml

  3. blueprints/automation/bathroom_fan_from_humidity/v1/bathroom_fan_from_humidity_delta.yaml

  4. blueprints/automation/vacuum_job_manager/v1/vacuum_job_manager.yaml

  5. blueprints/automation/witb_transit_room/v1/witb_transit_room.yaml

  6. blueprints/automation/witb_plus_bed_sensor/v1/witb_plus_bed_force_occupied.yaml

  7. blueprints/script/witb_switch_light_profiles/v1/witb_lights_on_hook_vzw31sn.yaml

  8. blueprints/script/witb_switch_light_profiles/v1/witb_lights_off_hook_vzw31sn.yaml

Helper Packages and Generators

Run from repo root.

  1. Generate occupancy helpers/templates:
python blueprints/generate_witb_packages_templated.py \
  --rooms "Office" "Master Bathroom Toilet" \
  --template blueprints/automation/witb_plus/v4/witb_plus_package_template.yaml \
  --out blueprints/automation/witb_plus/v4/packages
  1. Generate actions helpers:
python blueprints/generate_witb_packages_templated.py \
  --rooms "Office" "Master Bathroom Toilet" \
  --template blueprints/automation/witb_plus_actions_lights_fan/v2/room_witb_actions_package_template.yaml \
  --out blueprints/automation/witb_plus_actions_lights_fan/v2/packages
  1. Generate bathroom humidity helper packages:
python blueprints/generate_witb_packages_templated.py \
  --rooms "Half Bathroom" \
  --template blueprints/automation/bathroom_fan_from_humidity/v1/room_humidity_baseline_delta_package_template.yaml \
  --out blueprints/automation/bathroom_fan_from_humidity/v1/packages

Generated files are helper/package YAML files. Automations are created in the Home Assistant UI from blueprints.

  1. Vacuum helpers template:
# POSIX shell example:
cp blueprints/automation/vacuum_job_manager/v1/vacuum_job_helpers.yaml packages/roomba_vacjob.yaml
# PowerShell example:
Copy-Item "blueprints/automation/vacuum_job_manager/v1/vacuum_job_helpers.yaml" "packages/roomba_vacjob.yaml"
# Ensure packages are loaded in Home Assistant
homeassistant:
  packages: !include_dir_merge_named packages/

Repository Layout

  • blueprints/automation/: current blueprint work.
  • blueprints/script/: current script blueprint work.
  • docs/: implementation docs and blueprint compatibility matrix.
  • examples/: copy-ready package and automation examples.
  • references/: official Home Assistant docs links and third-party references.
  • tools/: utility scripts and validation helpers.
  • legacy/v1/: older blueprint collection and docs.

Legacy

Older content remains under legacy/v1/README.md.

About

Blueprints for Home Assistant

Topics

Resources

Contributing

Stars

Watchers

Forks

Contributors

Languages