Testing getting batt from owntracks

This commit is contained in:
Jeffrey Stone 2017-01-01 21:39:30 -05:00
parent 8158639051
commit a4af019136
2 changed files with 11 additions and 0 deletions

View File

@ -40,6 +40,7 @@ Family:
Jeffrey: Jeffrey:
- device_tracker.owntracks_jeffreysphone - device_tracker.owntracks_jeffreysphone
- sensor.jeffs_phone_battery
- device_tracker.jeffreyonesipad - device_tracker.jeffreyonesipad
- device_tracker.jeffreysmbp - device_tracker.jeffreysmbp
- device_tracker.jstonemac - device_tracker.jstonemac

10
sensors/owntracks.yaml Normal file
View File

@ -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 }}'