5f01411780
Initial snapshot of Home Assistant config (HAOS 2026.4.4)
prior to dashboard restructuring and helper YAML migration.
Pre-commit cleanup applied:
- Removed blueprints/switch_manager/ (9.4 MB stale, component already gone)
- Removed .storage/switch_manager
- Removed home-assistant.log.{1,old,fault}
- Removed zigbee2mqtt/configuration_backup_v{1..4}.yaml
- Removed zigbee2mqtt/database.db.tmp.2024-09-27 (1.5y old)
- Created empty themes/ to satisfy configuration.yaml include
.gitignore uses allowlist strategy for .storage/ to keep
all tokens, keys, and PINs out of version control.
28 lines
971 B
YAML
28 lines
971 B
YAML
blueprint:
|
|
name: Invert a binary sensor
|
|
description: Creates a binary_sensor which holds the inverted value of a reference binary_sensor
|
|
domain: template
|
|
source_url: https://github.com/home-assistant/core/blob/dev/homeassistant/components/template/blueprints/inverted_binary_sensor.yaml
|
|
input:
|
|
reference_entity:
|
|
name: Binary sensor to be inverted
|
|
description: The binary_sensor which needs to have its value inverted
|
|
selector:
|
|
entity:
|
|
domain: binary_sensor
|
|
variables:
|
|
reference_entity: !input reference_entity
|
|
binary_sensor:
|
|
state: >
|
|
{% if states(reference_entity) == 'on' %}
|
|
off
|
|
{% elif states(reference_entity) == 'off' %}
|
|
on
|
|
{% else %}
|
|
{{ states(reference_entity) }}
|
|
{% endif %}
|
|
# delay_on: not_used in this example
|
|
# delay_off: not_used in this example
|
|
# auto_off: not_used in this example
|
|
availability: "{{ states(reference_entity) not in ('unknown', 'unavailable') }}"
|