Skip to content

Instantly share code, notes, and snippets.

View jand187's full-sized avatar

Jan Daniel Anderse jand187

View GitHub Profile
@EverythingSmartHome
EverythingSmartHome / All open windows and doors
Last active December 12, 2025 01:45
A collection of useful templates for Home Assistant dashboards
{{ states.binary_sensor
| selectattr('attributes.device_class', 'in', ['door','window'])
| selectattr('state', 'equalto', 'on')
| list | count }}