I’ve been struggling a bit getting the devices showing in the map. I already have the battery metrics coming in, so I know the MQTT path is working fine.
Here are my code blocks if anyone has ideas:
automations.yaml:
- id: location_lcp
alias: "Las Canchas Park"
description: ""
trigger:
- platform: mqtt
topic: msh/2/json/LongFast/!934cf8a8
condition:
- condition: state
entity_id: sensor.lcp_location
attribute: type
state: position
- condition: state
entity_id: sensor.lcp_location
attribute: from
state: 3750913147
action:
- service: device_tracker.see
data_template:
dev_id: mt_lcp
gps: >-
{{
(((state_attr('sensor.lcp_location','payload')['latitude_i'])|float(0))/10000000)
}},{{
(((state_attr('sensor.lcp_location','payload')['longitude_i'])|float(0))/10000000)
}}
enabled: true
mode: single
Confirm the from field value is correct at 3750913147?
You’ve got 2 types of quotes in there - simple and fancy. Like ” versus " and ’ versus ‘. Suggest try changing those to simple unicode chars since it might be causing issues with config parsing.
Your tracker should be called device_tracker.mt_lcp
Open Developer Tools then click States. Start typing in the text box below Entities column label to search. You can also do this by going to Settings → Devices → Entities and filter there too. - ted