From eb18452acc759c5d4f97723ed4c8fc485aab0fe6 Mon Sep 17 00:00:00 2001 From: Jeffrey Stone Date: Thu, 24 Feb 2022 23:12:12 -0500 Subject: [PATCH] Testing some speed sensors --- config/sensors/users.yaml | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/config/sensors/users.yaml b/config/sensors/users.yaml index 57d68af..2e12d04 100755 --- a/config/sensors/users.yaml +++ b/config/sensors/users.yaml @@ -4,3 +4,15 @@ - platform: mqtt name: "Kat Destination" state_topic: "kat/driving/destination" +- platform: template + sensors: + jeff_speed: + friendly_name: "Jeff Speed" + unit_of_measurement: 'mph' + value_template: "{{ state_attr('device_tracker.jeffrey_s_iphone_11_app', 'speed') | float / 1.609 | round(0) }}" + kat_speed: + friendly_name: "Kat Speed" + unit_of_measurement: 'mph' + value_template: "{{ state_attr('device_tracker.life360_kat_stone', 'raw_speed') | int }}" + + \ No newline at end of file