I have a Nexus 5 with the last CyanogenMod nightly (12.1 20150917). I have a bug with the live display. Since the auto mode doesn't switch automatically, I have installed Automate, an app that uses the Android API to do tasks.
To fix the bug, I would like to create a task to switch in the night mode at a specific time, but unfortunately, there isn't the Live Display in Automate. Is there a way to set the night mode through the terminal?