Advertisement
techblog

Waze_Template

Jun 2nd, 2018
1,830
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. - platform: template
  2.   sensors:
  3.     to_wotk_distance:
  4.       unit_of_measurement: 'KM'
  5.       value_template: '{{ states.sensor.to_work.attributes.distance }}'
  6.       friendly_name: 'Distance'
  7.       icon_template: mdi:map-marker-distance
  8.      
  9.  
  10. - platform: template
  11.   sensors:
  12.     to_wotk_route:
  13.       value_template: '{{ states.sensor.to_work.attributes.route }}'
  14.       friendly_name: 'Route'
  15.       icon_template: mdi:routes
  16.  
  17. - platform: template
  18.   sensors:
  19.     back_home_distance:
  20.       unit_of_measurement: 'KM'
  21.       value_template: '{{ states.sensor.back_home.attributes.distance }}'
  22.       friendly_name: 'Distance'
  23.       icon_template: mdi:map-marker-distance
  24.  
  25. - platform: template
  26.   sensors:
  27.     back_home_route:
  28.       value_template: '{{ states.sensor.back_home.attributes.route }}'
  29.       friendly_name: 'Route'
  30.       icon_template: mdi:routes
Advertisement
RAW Paste Data Copied
Advertisement