Night Mode in API

It would be nice to read out / set the times from the night mode via the API.