Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- repeat:
- while:
- - condition: state
- entity_id: input_boolean.shop_lock
- state: 'on'
- # Don't do it too many times
- - condition: template
- value_template: "{{ repeat.index <= 120 }}"
- sequence:
- - service: tts.cloud_say
- entity_id: media_player.shop
- data:
- message: Unauthorized entry. Police is being dispatch. Cameras are recording.
- - wait_template: "{{ is_state('input_boolean.shop_lock', 'off') }}"
- timeout: '00:00:05'
- continue_on_timeout: true
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement