Added support for motion sensors and fixed auth key.