Quantcast
Channel: Configuration - Home Assistant Community
Viewing all articles
Browse latest Browse all 96123

Waze travel time in notification

$
0
0

@Depechie wrote:

I want to try to use out the waze travel time in a notification message.
So the Duration attributes ( which is in minutes and has decimals ).

I tried:

    data_template:
      title: "Home Assistant"
      message: "{{ states('sensor.work_to_home.duration') }}"

But I get unknown and

    data_template:
      title: "Home Assistant"
      message: "{{ states('sensor.work_to_home.duration') | int | timestamp_custom('%H:%M:%S', 0) }}"

Always gives 00 00

So any tips or examples on how to get the data and nicely format this?

Posts: 3

Participants: 2

Read full topic


Viewing all articles
Browse latest Browse all 96123

Trending Articles