Having this may help:
Not sure if the API has sleep.
Am I missing something or is the list of supported devices for auto sleep not listed anywhere?