Hello:)
I have two entities.
|sensor.elizabet_latitude|53.18373|friendly_name: elizabet.latitude|
| sensor.elizabet_longtitude|5.563591|friendly_name: elizabet.longtitude|
How can i make a device tracking from it? Or display it in the maps?
I hope anyone knows the answere
Greetings justin
Assuming there isn’t a device_tracker platform available that works for you (not sure where that data is coming from), you can use the device_tracker.see
service in an automation, something like this:
- alias: Elizabet device tracker
trigger:
- platform: state
entity_id:
- sensor.elizabet_latitude
- sensor.elizabet_longtitude
action:
- service: device_tracker.see
data_template:
dev_id: elizabet
gps:
- "{{ states('sensor.elizabet_latitude') }}"
- "{{ states('sensor.elizabet_longtitude') }}"
Hi,
Thnx for you’re time.
It works:) , but if I understand this correctly, the coordinates are only changed when the automation is activated?
I have retrieved the information via scrape sensor from this site.
https://www.marinetraffic.com/en/ais/details/ships/shipid:251314/vessel:ELIZABETH
Greetings
Yes, but the automation will be activated every time either of the sensors changes.
Yes You are right. I must have seen that!
Thnx for your help!!
Greetings
1 Like
unfortunately it isn’t working anymore since a few update back. I hope someone has an idea for me to fix it?
Greetings justin