Skip to content

Instantly share code, notes, and snippets.

View gaelfoppolo's full-sized avatar

Gaël Foppolo gaelfoppolo

View GitHub Profile
@EverythingSmartHome
EverythingSmartHome / All open windows and doors
Last active July 24, 2026 17:54
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 }}