Sensor automation not working