Created
April 5, 2019 10:50
-
-
Save pbuckley4192/9c95b602b9675b9c7b3f8ed98e281870 to your computer and use it in GitHub Desktop.
car_location_issue
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- id: '1552465990326' | |
alias: Car Location | |
trigger: | |
- platform: mqtt | |
topic: homeassistant/sensor/android_pauls_phone_hfp/state | |
condition: | |
- condition: template | |
value_template: '{{ trigger.payload_json[''last_device_mac''] == ''10:08:C1:XX:XX:XX'' | |
}}' | |
- condition: template | |
value_template: '{{ trigger.payload_json.last_device_longitude is defined }}' | |
action: | |
- data_template: | |
dev_id: my_car_id | |
gps: | |
- '{{ trigger.payload_json.last_device_latitude }}' | |
- '{{ trigger.payload_json.last_device_longitude }}' | |
gps_accuracy: 1 | |
host_name: 'Santa Fe' | |
mac: '10:08:C1:XX:XX:XX' | |
source_type: gps | |
service: device_tracker.see |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment