Device tracker formatting for multiple iphones?

I keep having issues with entering multiple iphone’s in the yaml configuration file. Does anyone have any sample yaml configurations?

device_tracker:
platform: icloud
username: USERNAME
password: PASSWORD

how do I add more users after this first one?? in the right yaml format?? I keep crashing my HA!!

Do it like this:

device_tracker:
  - platform: icloud
    username: USERNAME1
    password: PASSWORD1
  - platform: icloud
    username: USERNAME2
    password: PASSWORD2

That worked. Thanks!!! I also have all my zones also set up now. Do you know of any simple instructions on how to set the yaml on push notifications when the Iphones leave and enter the zones? I don’t fully understand the directions on the HA website. Thanks again for the help!!

1 Like

Use a state trigger as noted here:

inside an automation as noted here:

combined they should look like: (not 100% sure the formatting is right there but it should get you pretty close)

automation:
  trigger:
    platform: state
    entity_id: device_tracker.paulus, device_tracker.anne_therese
    from: 'not_home'
    to: 'home'
  action:
    service: notify.notify
      data:
        message: Im home!