From 3e95f89e9feb88b429db65a441d171b129ceb4c4 Mon Sep 17 00:00:00 2001 From: Jeffrey Stone Date: Sun, 1 Jan 2017 22:24:34 -0500 Subject: [PATCH] Got the mqtt sensor fixed --- groups.yaml | 2 +- sensors/owntracks.yaml | 9 ++++++++- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/groups.yaml b/groups.yaml index 0c7d551..cb13c3c 100644 --- a/groups.yaml +++ b/groups.yaml @@ -40,7 +40,7 @@ Family: Jeffrey: - device_tracker.owntracks_jeffreysphone - - sensor.mqtt_jeff_iphone_battery + - sensor.mqtt_jeff_phone_battery - device_tracker.jeffreyonesipad - device_tracker.jeffreysmbp - device_tracker.jstonemac diff --git a/sensors/owntracks.yaml b/sensors/owntracks.yaml index 2c0b863..0bb2975 100644 --- a/sensors/owntracks.yaml +++ b/sensors/owntracks.yaml @@ -1,7 +1,14 @@ - platform: mqtt + name: "Jeff Phone Battery" state_topic: "owntracks/owntracks/jeffreysphone" - name: "Jeff iPhone Battery" + qos: 0 unit_of_measurement: "%" value_template: '{{ value_json.batt }}' +- platform: mqtt + name: "Jeff Velocity" + state_topic: "owntracks/owntracks/jeffreysphone" + qos: 0 + unit_of_measurement: "" + value_template: '{{ value_json.vel }}' \ No newline at end of file