Fancy Voice Messages!

This commit is contained in:
CCOSTAN
2017-02-04 21:47:28 +00:00
parent f5fb65059a
commit f366eb1df7
2 changed files with 11 additions and 3 deletions

View File

@@ -37,5 +37,5 @@
action:
- service: script.Voice_notify
data_template:
value1: "Attention. {{ trigger.entity_id.split('.')[1].lower().title() }} is now {{ trigger.to_state.state }}"
data_template:
value1: "{{ trigger.entity_id.split('.')[1]|replace('_', ' ') }} is now {{ trigger.to_state.state }}"