Files
fresh-home/automations/people/something_open_too_warm_or_cold.yaml
T
2026-01-22 08:39:55 -05:00

15 lines
513 B
YAML

alias: "Something open too warm or cold"
id: automation_something_open_too_warm_or_cold
mode: restart
trigger:
- platform: state
entity_id: binary_sensor.something_open_too_warm_or_cold
to: "on"
action:
- action: notify.mobile_app_pixel_10_pro
data:
message: >-
Its too hot or cold to leave these open: {{ dict((states|selectattr('entity_id', 'in', state_attr('group.my_hvac_affecting_openings', 'entity_id'))|list)|groupby('state'))['on']|map(attribute='name')|list|join(', ') }}