Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- - alias: test
- trigger:
- - platform: time
- #value_template: "{{ states('sensor.time') == (states.input_datetime.only_time_mattino.attributes.timestamp | int | timestamp_custom('%H:%M', False)) }}"
- at: 13:40:00
- action:
- - service: notify.telegram
- data_template:
- title: '*Attenzione Finestre Aperte'
- message: >-
- {{ dict((states|selectattr('entity_id', 'in', state_attr('group.porte_finestre', 'entity_id'))|list)|groupby('state'))['on']|map(attribute='name')|list|join(',\n') }}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement