From a4af019136b8d0e28bd4563f89c4a9124b19da87 Mon Sep 17 00:00:00 2001 From: Jeffrey Stone Date: Sun, 1 Jan 2017 21:39:30 -0500 Subject: [PATCH] Testing getting batt from owntracks --- groups.yaml | 1 + sensors/owntracks.yaml | 10 ++++++++++ 2 files changed, 11 insertions(+) create mode 100644 sensors/owntracks.yaml diff --git a/groups.yaml b/groups.yaml index 2f45343..ab91e79 100644 --- a/groups.yaml +++ b/groups.yaml @@ -40,6 +40,7 @@ Family: Jeffrey: - device_tracker.owntracks_jeffreysphone + - sensor.jeffs_phone_battery - device_tracker.jeffreyonesipad - device_tracker.jeffreysmbp - device_tracker.jstonemac diff --git a/sensors/owntracks.yaml b/sensors/owntracks.yaml new file mode 100644 index 0000000..f038ad5 --- /dev/null +++ b/sensors/owntracks.yaml @@ -0,0 +1,10 @@ +- platform: mqtt + state_topic: "owntracks/owntracks/jeffreysphone" + name: "Jeffs Phone Battery" + unit_of_measurement: "%" + value_template: '{{ value_json.batt }}' +- platform: mqtt + state_topic: "owntracks/owntracks/jeffreysphone" + name: "Jeffs Velocity" + unit_of_measurement: "%" + value_template: '{{ value_json.vel }}' \ No newline at end of file