Trying to use an automation to set location

So i’m trying to set a location (yes it’s sleeping, but it could be a location)
my automation is below

- alias: 'Set Arya Sleeping'
  trigger:
    platform: state
    entity_id: binary_sensor.esp3_door
    from: 'off'
    to: 'on'
  action:
    - service: device_tracker.see
      data:
        dev_id: device_tracker.123456
        location_name: 'Sleeping'

I get the following error.

  File "/usr/local/lib/python3.6/dist-packages/homeassistant/components/device_tracker/__init__.py", line 224, in async_see_service
    yield from tracker.async_see(**data)
  File "/usr/local/lib/python3.6/dist-packages/homeassistant/components/device_tracker/__init__.py", line 291, in async_see
    dev_id = cv.slug(str(dev_id).lower())
  File "/usr/local/lib/python3.6/dist-packages/homeassistant/helpers/config_validation.py", line 339, in slug
    raise vol.Invalid('invalid slug {} (try {})'.format(value, slg))
voluptuous.error.Invalid: invalid slug device_tracker.123456 (try device_tracker123456)

if i then set it to device_tracker123456 i get no error, but also the location doesn’t change.
I found a few links which may indicate the device_tracker.see my be broken…

https://community.home-assistant.io/t/using-device-tracker-see/20856
https://community.home-assistant.io/t/device-tracker-see-doesnt-actually-change-state/5052

Wait i found it…
Needed to be

- alias: 'Set Arya Sleeping'
  trigger:
    platform: state
    entity_id: binary_sensor.esp3_door
    from: 'off'
    to: 'on'
  action:
    - service: device_tracker.see
      data:
        dev_id: 123456
        location_name: 'Sleeping'

Kinda makes sense as I’ve already let it know it’s gonna be a device tracker by having it as service device_tracker.see