Look at the post #8 of VladTepz. He explains how to set it up: iCloud custom_component device tracker that will not drain your battery
Look at the post #8 of VladTepz. He explains how to set it up: iCloud custom_component device tracker that will not drain your battery