Skip to content
This repository has been archived by the owner on Dec 20, 2019. It is now read-only.

Commit

Permalink
Add files via upload
Browse files Browse the repository at this point in the history
  • Loading branch information
caiosweet committed Oct 13, 2019
1 parent eaacb1e commit fcb73c7
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
3 changes: 2 additions & 1 deletion test/hub_alexa.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -347,7 +347,8 @@ automation:
- service: timer.start
data_template:
entity_id: timer.volume_alexa
duration: "00:00:{{states('input_text.last_message') | wordcount // 2+2 }}"
duration: >-
{{(trigger.event.data.message_tts if trigger.event.data.message_tts else trigger.event.data.message) | wordcount // 2+2}}
#######################################-#######################################
## SCRIPT
Expand Down
6 changes: 5 additions & 1 deletion test/hub_google.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,11 @@ automation:
- service: timer.start
data_template:
entity_id: timer.volume_google
duration: "00:00:{{states('input_text.last_message') | wordcount // 2+3 }}"
duration: >-
{{(trigger.event.data.message_tts if trigger.event.data.message_tts else trigger.event.data.message) | wordcount // 2+3}}
- wait_template: "{{ is_state('timer.volume_google', 'idle') }}"
#- wait_template: "{{not is_state('timer.volume_google', 'active')}}"

#######################################-#######################################
## SCRIPT
Expand Down

0 comments on commit fcb73c7

Please sign in to comment.