Advertisement
penright

Untitled

Apr 15th, 2022
175
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
YAML 0.59 KB | None | 0 0
  1.      repeat:
  2.         while:
  3.           - condition: state
  4.             entity_id: input_boolean.shop_lock
  5.             state: 'on'
  6.           # Don't do it too many times
  7.           - condition: template
  8.             value_template: "{{ repeat.index <= 120 }}"
  9.         sequence:
  10.           - service: tts.cloud_say
  11.             entity_id: media_player.shop
  12.             data:
  13.               message: Unauthorized entry. Police is being dispatch. Cameras are recording.
  14.           - wait_template: "{{ is_state('input_boolean.shop_lock', 'off') }}"
  15.             timeout: '00:00:05'
  16.             continue_on_timeout: true
  17.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement