#285 - More fine tuning.

This commit is contained in:
ccostan 2018-01-19 16:34:49 -05:00
parent 4e226a5bd9
commit c8b349dee8
2 changed files with 2 additions and 2 deletions

View File

@ -25,7 +25,7 @@ sensor:
'Withings Scale'
])
and(as_timestamp(now()) - as_timestamp(item.last_changed)) > 600 -%}
{{ item.attributes.friendly_name }} - {{((as_timestamp(now()) - as_timestamp(item.last_changed))/60) | round() }} minutes
{{ item.attributes.friendly_name }}
{%- if not loop.last -%}
{{'
'}}

View File

@ -12,7 +12,7 @@ speech_processing:
- service: mqtt.publish
data_template:
topic: 'polly/lastmsg'
payload: "This message is from {{ now().strftime('%-I') }}:{{ now().strftime('%M') }} {{ now().strftime('%p') }}. {{ speech_message }}"
payload: "This message is from {{ now().strftime('%-I') }}:{{ now().strftime('%M') }} {{ now().strftime('%p') }}. {{ speech_message | truncate(254)}}"
retain: true
- condition: and