Advertisement
asyscom

Untitled

Mar 20th, 2019
79
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
YAML 0.51 KB | None | 0 0
  1. - alias: test
  2.   trigger:
  3.   - platform: time
  4.     #value_template: "{{ states('sensor.time') == (states.input_datetime.only_time_mattino.attributes.timestamp | int | timestamp_custom('%H:%M', False)) }}"
  5.     at: 13:40:00
  6.   action:
  7.   - service: notify.telegram
  8.     data_template:
  9.       title: '*Attenzione Finestre Aperte'
  10.       message: >-
  11.       {{ 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