Advertisement
314ma

Matiełusz

Jul 17th, 2020
262
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
YAML 0.51 KB | None | 0 0
  1. - alias: leaving_home_security_check_early
  2.   initial_state: 'on'
  3.   trigger:
  4.     - platform: state
  5.       entity_id: binary_sensor.fibaro_door_sensor_5_sensor_fixed
  6.       from: "off"
  7.       to: "on"
  8.   condition:
  9.     - condition: state
  10.       entity_id: group.security_check_early
  11.       state: "on"
  12.   action:
  13.     - service: script.tts_on_wallpanel
  14.       data_template:
  15.         message: "Sprawdź {{ expand('group.security_check_early') | selectattr('state', 'equalto', 'on') | map(attribute='name') | join(', ') }}"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement